Login   /   Register

Determine the name of the time zone in which a computer is running

Rate this article
     1 votes, average: 3 out of 51 votes, average: 3 out of 51 votes, average: 3 out of 51 votes, average: 3 out of 51 votes, average: 3 out of 5
Loading ... Loading ...
April 1st, 2008 by daniva

Use the Win32_TimeZone class and check the value of the Description property.

Set wmiService = GetObject( "Winmgmts:root\cimv2" )
Set items = wmiService.ExecQuery( "Select * from Win32_TimeZone" )
For Each item in items
   Print "Description: " & item.Description
   Print "Daylight Name: " & item.DaylightName
   Print "Standard Name: " & item.StandardName
Next

Posted in WMI

Leave a Reply

You must be logged in to post a comment.

This article was viewed 377 times