Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Event Log   (RSS)

Windows Event Log in PowerShell - Part II

In part 1 of “ Event logs in Powershell ” we talked about differences between Get-EventLog and Get-WinEvent. In this second part we will dig deeper into Get-WinEvent. Starting in Windows Vista, the Windows Event Log was updated to provide a more powerful
Posted by PowerShellTeam | 7 Comments
Filed under: ,

Processing Event Logs in PowerShell

PowerShell V2 ships with two sets of cmdlets for processing event logs, one is *-EventLog set and other is Get-WinEvent. PS > gcm *EventLog -CommandType cmdlet CommandType Name Definition ----------- ---- ---------- Cmdlet Clear-EventLog Clear-EventLog
 
Page view tracker