![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| Windows Vista™ Ultimate | PowerShell History The Lazy Admin : PowerShell History DOSKEY was used to enable you to recall and edit previously entered commands within the Command.exe (or CMD.exe). PowerShell takes this idea to the next level with the Get-History command. By entering Get-History in PowerShell you will be shown a list of the most recent cmdlets that have been run. To run a cmdlet again, it is as simple as running the invoke-history cmdlet. You can get a more specific list of cmdlets run by piping "where {$_.commandLine -like "variable"}" This will display all cmdlets that have been run that match the variable, and wildcards are acceptable. get-history | where {$_.commandLine -like "*process*"} The get-history cmdlet buffer will hold the last 64 commands run. You can increase this by running the following command. $MaximumHistoryCount=#### (replace #### with the number) Last edited by dmex; 06-29-2008 at 06:58 AM.. |
My System Specs![]() |
![]() |
| Thread Tools | |
| |