Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Find the Date of the Oldest Event in an Event LogContent of Find the Date of the Oldest Event in an Event Log.vbsMD5 Hash: 8CDC8F53528EC553CC63D7525B9CAAD3 |
||
strComputer = "."
Set objWMIService = GetObject("winmgmts:{(Security)}\\" & strComputer & "\root\cimv2") Set colEvents = objWMIService.ExecQuery _ ("Select * from Win32_NTLogEvent Where Logfile = 'System' " & _ "AND RecordNumber = 1") For Each objEvent in colEvents Wscript.Echo "Time Written: " & objEvent.TimeWritten Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |