Loading |
VBScript |
JavaScript |
Powershell |
Search Options: List System Event Log PropertiesContent of List System Event Log Properties.vbsMD5 Hash: 7066EB8DF342FDAC0DE7688B8D70F815 |
||
' Description: Reports the number of events currently recorded in the System event log.
strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colLogFiles = objWMIService.ExecQuery _ ("Select * from Win32_NTEventLogFile where LogFileName='System'") For Each objLogFile in colLogFiles Wscript.Echo objLogFile.NumberOfRecords Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |