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

PowerTip: Use PowerShell to Find Current Time Zone

$
0
0

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! AnswerUse the System.TimeZone .Net Framework class with the static CurrentTimeZone property:

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

 

StandardName                               DaylightName

------------                               ------------

Eastern Standard Time                      Eastern Daylight Time


Viewing all articles
Browse latest Browse all 3333

Trending Articles