August 4th, 2014

PowerTip: Use PowerShell to List Time Zones Defined on System

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to list time zones that are defined on a system.

Hey, Scripting Guy! Question How can I use Windows PowerShell to produce a list of all the time zones that are defined on my system?

Hey, Scripting Guy! Answer Use the System.TimeZone .NET Framework class, and call the GetTimeZones static method:

[System.TimeZoneInfo]::GetSystemTimeZones()

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.