Powershell Tip #101: Run a command from the history By powershellgu | April 27, 2016 2 Comments Tip: You can run a command from the history. PowerShell # List the commands from the history Get-History (alias "h") # Run a command from the history Invoke-History -Id 2597 (alias "r") # Clear the history Clear-History (alias "clhy") 12345678 # List the commands from the historyGet-History (alias "h") # Run a command from the historyInvoke-History -Id 2597 (alias "r") # Clear the historyClear-History (alias "clhy")
Pingback: Powershell Tip #100: Configure the netlogon.log size | Powershell Guru
Pingback: Powershell Tip #102: Get the first and last day of the month | Powershell Guru