PowerTip: Use PowerShell to List Time Zones Defined on System

Doctor Scripto

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()

0 comments

Discussion is closed.

Feedback usabilla icon