Query a bunch of Windows 2003 event logs 2013-08-20 / by trententtye / in Blog, Uncategorized / No Comments MS DOS for /f %A IN ('type systems.txt') DO ( cscript.exe C:\windows\system32\EVENTQUERY.vbs /S %A /FI "ID eq 3001" /L Application >> list.txt ) 123 for /f %A IN ('type systems.txt') DO (cscript.exe C:\windows\system32\EVENTQUERY.vbs /S %A /FI "ID eq 3001" /L Application >> list.txt) This will find event ID 3001 in the Application log file with a list of computers from “systems.txt”