Get-History
noun
say it: “GET HIS-tuh-ree” /ɡɛt ˈhɪstəri/
The PowerShell command that lists the commands you've typed in this window, each with an Id number you can run again with Invoke-History.
What does Get-History do?
Get-History lists the commands you've run in this window, each with an Id number. Invoke-History runs one of them again by its Id.
Get-History
Invoke-History 3 # runs command number 3 again
In a sentence
- “Get-History showed every step Jordan had taken, so we could see where things went wrong.”
- “I ran Get-History, found the long command as number 3, and ran it again with Invoke-History 3.”
Level: Novice · More PowerShell terms at this level
Updated