Fun with Logparser.exe and EventID 1221
Here's a simple query against the Application log on a remote Exchange server through logparser.exe to grab 2 days worth of EventID 1221 (summary of online after-hours maintenance). I've added this to my daily Exchange server status script. Note per MS that you should do an offline defrag (eseutil /d) to get the real free space readings
LogParser.exe "select TimeGenerated, EventID, Message into out2.csv f
rom \\exchangeServer\Application where eventid = 1221 and TimeGenerated >= TO_LOCALTIM
E(SUB(SYSTEM_TIMESTAMP(),TIMESTAMP('2','d')))"

Tunneling Dameware Mini Remote Control over WinSSHd »
Search