Eventquery.vbs (指令查詢Event Log)

查詢MSSQLSERVER最新一筆錯誤記錄 C:\WINDOWS\system32>cscript eventquery.vbs /L Application /FO table /FI "Type eq Error" /FI "Source eq MSSQLSERVER" /r 1

Eventquery.vbs Yay! A fix for EventQuery - Windows Security Logging and Other Esoterica - Site Home - MSDN Blogs