Tip: You can increase the number of commands saved in the command history by modifiying the value of the variable $MaximumHistoryCount.
The default value is 4096, the minimum range is 1 and the maximum range is 32767 (Powershell 5).
1 2 3 4 5 |
# Set to 10000 $MaximumHistoryCount = 10000 # Display Min and Max Range Get-Variable -Name MaximumHistoryCount | Select-Object -ExpandProperty attributes | Format-List -Property *Range |