June 1st, 2013

PowerTip: Use PowerShell to Find Current Time Zone

Doctor Scripto
Scripter

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

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.