WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

User Sample Code

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Get Time Zone


;Get Time Zone
strComputer = 'Fred'
objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!//" : strComputer : "/root/cimv2")
colItems = objWMIService.ExecQuery("Select * from Win32_TimeZone")
ForEach objItem In colItems
   Message( "Win32_TimeZone", objItem.Description )
   ;Message( "Daylight Name" , objItem.DaylightName )
   ;Message( "Standard Name" , objItem.StandardName )
Next

Article ID:   W18481
Filename:   Get Time Zone.txt
File Created: 2008:11:25:12:47:14
Last Updated: 2008:11:25:12:47:14