📜 VBScript (WSH)

Get Time Zone Settings Report (VBScript)

Queries Win32_TimeZone via WMI and prints Time Zone Settings to the console — no PowerShell required.

By WindowsScripting.com · 899 B
GetTimeZoneReport.vbs
' ============================================================
' GetTimeZoneReport.vbs
'
' Reports Time Zone Settings via WMI (Win32_TimeZone).
'
' Usage: cscript GetTimeZoneReport.vbs
' ============================================================

Option Explicit

Dim objWMIService, colItems, objItem, strOutput

Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
Set colItems = objWMIService.ExecQuery("SELECT Description, Bias, StandardName FROM Win32_TimeZone")

strOutput = ""
For Each objItem In colItems
    strOutput = strOutput & "Description: " & objItem.Description & vbCrLf
    strOutput = strOutput & "Bias: " & objItem.Bias & vbCrLf
    strOutput = strOutput & "StandardName: " & objItem.StandardName & vbCrLf
    strOutput = strOutput & String(40, "-") & vbCrLf
Next

If strOutput = "" Then
    WScript.Echo "No Time Zone Settings found."
Else
    WScript.Echo strOutput
End If