PowerShell: Set Computer Time Zone

PowerShell

Purpose: Set local computer time zone to a specific Time Zone ID or Name

Run the following Set-TimeZone command in an elevated privilege PowerShell window using an account with local administrator privileges:

Set Time Zone By Time Zone ID

Set-TimeZone -Id "<Time-Zone-Id>"

Set Time Zone By Time Zone Name

Set-TimeZone -Name "<Time-Zone-Name>"

Notes:
Use the Get-TimeZone -ListAvailable command for a full list of available Time Zone IDs and Time Zone Names.

Time-Zone-Id : Time Zone ID to set local computer to. The ID must match the Id property of the TimeZoneInfo object. E.g. “Pacific Standard Time
Time-Zone-Name: Time Zone Name to set local computer to. The name must match either the StandardName or DaylightName properties of the TimeZoneInfo object. E.g. “Pacific Daylight Time

References:
Set-TimeZone (Microsoft.PowerShell.Management) – PowerShell | Microsoft Docs

Related:
PowerShell: Get Current Computer Time Zone – CodeCentral.com
PowerShell: Get List Of Available Time Zones – CodeCentral.com

Leave a comment