number of log file entries of a certain status code
number of log file entries of a certain status code
number of log file entries of a certain status code
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colLoggedEvents = objWMIService.ExecQuery _
("Select * from Win32_NTLogEvent Where Logfile = ‘Application’ and " _
& "EventCode = ‘2001′")
Wscript.Echo "Office errors: " & colLoggedEvents.Count
Related posts:
- count the number of system log file entries Learn more about count the number of system log file...
- number of entries in a log file Learn more about number of entries in a log file...
- a service status Learn more about a service status by visiting our website....
- event logs to an excel spreadsheet Learn more about event logs to an excel spreadsheet by...
- check if SQL server is installed on your computer Learn more about check if SQL server is installed on...
Related posts brought to you by Yet Another Related Posts Plugin.

