December 2015
Intermediate to advanced
760 pages
14h 31m
English
You can recall the commands you typed in the PowerShell console using the Get-History cmdlet.
This is how to redisplay the console history:
Get-History
By default, PowerShell will keep 64 previous commands in the buffer and allow you to recall these commands when you run Get-History. The Get-History command will display the last 32 commands, but you can also specify how many lines you want to display by specifying the –Count parameter:
#get last 10 Get-History –Count 10
If you want to reexecute any of the commands that you see in your history, you can use the Invoke-History cmdlet and provide it with the history ID. For example, if you ...
Read now
Unlock full access