This script works just perfect it retrieves the clock time, but for only one computer how do I modify it to retrieve the time of many computers, if you can tweek it to show the zone will be more than perfect.
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("S
For Each objItem in colItems
strTime = objItem.LocalDateTime
dtmTime = CDate(Mid (strTime, 9, 2) & ":" & Mid(strTime, 11, 2) & ":" & _
Mid(strTime, 13, 2))
dtmTime = CDate(dtmTime)
Wscript.Echo FormatDateTime(dtmTime, vbFormatLongTime)
Next
Main Topics
Browse All Topics





by: UbertamPosted on 2009-07-14 at 07:34:23ID: 24849969
http://support.microsoft.c om/kb/9143 87/
Gives all the details, including script examples.