concept PowerShell event in category powershell
appears as: PowerShell event

This is an excerpt from Manning's book Windows PowerShell in Action, Third Edition.
When PowerShell is installed, the installation process creates a new event log called Windows PowerShell. As PowerShell executes, it writes a variety of information to this log, which you can see using the Get-EventLog cmdlet. Let’s use the cmdlet to get the last few records from the PowerShell event log. As always, you can use the tools PowerShell provides to filter and scope the data you want to look at. You’ll use an array slice to get the last five records from the log: