Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Find Time Zone Names with PowerShell

$
0
0

Summary: Find time zone enumeration names with Windows PowerShell.

Hey, Scripting Guy! Question How can I use Windows PowerShell to enumerate the names of time zones that are configured on my computer?

Hey, Scripting Guy! Answer Use the System.TimeZoneInfo .NET Framework class, and use the GetSystemTimeZones static method
           to obtain the list. You want the ID property for enumeration values and the DisplayName property to see
           the standard display name values. Here is an example:

[timezoneinfo]::GetSystemTimeZones() | select displayname, id


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>