Set colCompSys = objWMIService.ExecQuery _ ("Select * from Win32_ComputerSystem")
For Each objCompSys in colCompSys objCompSys.CurrentTimeZone = intGMTOffset objCompSys.Put_ If Err = 0 Then Wscript.Echo "Time zone set to specified value." Else Wscript.Echo "Unable to set time zone." End If Err.Clear Next