Friday, May 13, 2016

PowerShell cmdlet of the Day : Get-History


We love logging, doesn't matter if its an "Event Manager (Windows)" or "/var/log/mesages (Linux)" , we just simple love the logging of the things and actions.

Powershell loves logging too, and it even keeps the logs of all of your commands which you had executed on your current PowerShell console.

To see all the command which you have run in your PowerShell console, just type and enter the cmdlet Get-History.


The main and useful thing to note down the ID of the command which you have run. 


With Regards.
Aman Dhally
If you like, you can follow me on Twitter and Facebook. You can also check my “You Tube channel
for PowerShell video tutorials. You can download all of my scripts from “Microsoft
TechNet Gallery”.

No comments:

Post a Comment