C:\WINDOWS\system32>cscript eventquery.vbs /L Application /FO table /FI "Type eq Error" /FI "Source eq MSSQLSERVER" /r 1