Even after the knowledge of the language, users may encounter some restrictions and bumps in the process.
One of the restrictions that users had reported is the shortcut of Ctrl+R is not working, which is the command to show the history or list of search.Source:-How to Fix PowerShell History Not Working?In this condition, users are not able to access the history section, which can be very helpful to users in many cases.
Powershell had created an extensive built-in list of commands used previously, which helps you to access the list of complex commands and saves you extra time to run the same and hectic command more than one time.When you can’t access the history section, then you can follow these steps to remedy the condition:Test the assembly of PSReadLineIt is not a significant problem for the users of PowerShell and it generated when users upgraded to Windows 10.
There is the possibility that you may remember the downloading the PSReadLine, even if you don’t, it comes to the Windows 10 package.It removes the traditional view of the feature of history and creates the new and more sophisticated display of the list of commands.
This function is not a built-in feature of the Windows Management Framework, so you have to depend on the third-party modules of PSReadLine.If you want to make sure that the installation has removed the problem, then you should run the command “Get-PSReadLineOption.” If you get the error referring to the PSReadLine, later, you should try to change the layout of the keyboard to en-US and check again for any improvement.Try Different Methods to Access the HistorySuppose you want to access history for some previous command, but you are unable to access history from the Ctrl+R command.Then it would be best if you tried different outlets to access history, and you can use the following cmdlet to do that:Get-HistoryGet-History | Select-String -Pattern “Search.”Get-History | Format-List -Property *Get-History | Export-Clixml -Path c:pscommands_hist.xmlIncrease Number Limit of Remember CommandAs a default, the buffer of the Command line only stores 50 commands.
You can increase the limit to save more command to store in your program memory.If you want to increase this limit, then you have to follow this process:Click the right button on the title bar of the window of PowerShell.Tap on the Properties in the list of options.Go to the Command History.Now you have to change the Value of Buffer size as per your requirements.