Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Subtract Days From a UTC Date-Time Value in Windows 2000Content of Subtract Days From a UTC Date-Time Value in Windows 2000.vbsMD5 Hash: 819746F556F11B20B9306FE9E2A941AD |
||
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set objOS = objWMIService.ExecQuery("Select * from Win32_OperatingSystem") For Each strOS in objOS dtmInstallDate = strOS.InstallDate dtmDate = CDate(Mid(dtmInstallDate, 5, 2) & "/" & _ Mid(dtmInstallDate, 7, 2) & "/" & Left(dtmInstallDate, 4)) Wscript.Echo dtmDate - 30 Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |