Retrieve information about the time zone configured on a computer.

This script was tested using Kixtart 2001 (412) for Microsoft Windows, available from Kixtart.org.

Kixtart
Edit|Remove
$strComputer = "."
$objWMIService = GetObject("winmgmts:\\"+ $strComputer + "\root\cimv2")
$colItems = $objWMIService.ExecQuery("Select * from Win32_TimeZone")
For Each $objItem in $colItems
    ? "Bias:" + $objItem.Bias
    ? "Caption:" + $objItem.Caption
    ? "Daylight Bias:" + $objItem.DaylightBias
    ? "Daylight Day:" + $objItem.DaylightDay
    ? "Daylight Day Of Week:" + $objItem.DaylightDayOfWeek
    ? "Daylight Hour:" + $objItem.DaylightHour
    ? "Daylight Millisecond:" + $objItem.DaylightMillisecond
    ? "Daylight Minute:" + $objItem.DaylightMinute
    ? "Daylight Month:" + $objItem.DaylightMonth
    ? "Daylight Name:" + $objItem.DaylightName
    ? "Daylight Second:" + $objItem.DaylightSecond
    ? "Daylight Year:" + $objItem.DaylightYear
    ? "Description:" + $objItem.Description
    ? "Setting ID:" + $objItem.SettingID
    ? "Standard Bias:" + $objItem.StandardBias
    ? "Standard Day:" + $objItem.StandardDay
    ? "Standard DayOfWeek:" + $objItem.StandardDayOfWeek
    ? "Standard Hour:" + $objItem.StandardHour
    ? "Standard Millisecond:" + $objItem.StandardMillisecond
    ? "Standard Minute:" + $objItem.StandardMinute
    ? "Standard Month:" + $objItem.StandardMonth
    ? "Standard Name:" + $objItem.StandardName
    ? "Standard Second:" + $objItem.StandardSecond
    ? "Standard Year:" + $objItem.StandardYear
Next