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 [-LogName] <String[]> [[-Computer... Cmdlet Get-EventLog Get-EventLog [-LogName] <String> [[-InstanceId] ... Cmdlet Limit-EventLog Limit
Read More...
Read the complete post at http://blogs.msdn.com/powershell/archive/2009/05/21/processing-event-logs-in-powershell.aspx
Posted
May 20 2009, 11:10 PM
by
Windows PowerShell Blog