Wednesday, January 23, 2008

Powershell - free space

get-eventlog Application | where {$_.eventID -eq "1221"} | select message | select -first 10

This will give you the 10 most recent 1221 events and only show you the message, not the index, time, type, source and event ID.

No comments: