PowerTip: Use PowerShell to Find Current Time Zone

Summary: Use Windows PowerShell to find the current time zone information.

Hey, Scripting Guy! Question How can I use Windows PowerShell to find my current time zone?

Hey, Scripting Guy! Answer Use the System.TimeZone .Net Framework class with the static CurrentTimeZone property:

PS C:\> [System.TimeZone]::CurrentTimeZone


StandardName                               DaylightName

————                               ————

Eastern Standard Time                      Eastern Daylight Time

Comments (2)

  1. aenagy says:

    How do you get the time zone of a remote system using PS3 and not having to resort to Invoke-Command (http://blogs.technet.com/b/heyscriptingguy/archive/2012/03/28/use-powershell-to-see-time-zone-information-on-remote-computers.aspx)

  2. anonymous says:

    reg query HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTimeZoneInformation