Skip to main content
Jorge Bernhardt Jorge Bernhardt
  1. Posts/

How to set the system time zone with PowerShell

·135 words·1 min· 100 views · 5 likes ·
Get-TimeZone Microsoft Microsoft Windows PowerShell

If you need to configure a Server Core or simply because you want to configure with PowerShell. In this post, I show you how to set the system time zone using the Set-TimeZone cmdlet.

To set the system time zone with PowerShell, use the Set-TimeZone cmdlet with the following syntax:

Set-TimeZone `
    -Name <String>

Set-TimeZone `
    -Id <String>
system time zone

system time zone

-Name and -Id Parameters>

-Name and -Id Parameters #

If you want to obtain all valid timezone IDs and display names. you should use the tzutil.exe tool.

The_/l__ parameter lists all valid time zone IDs and displays names.

tzutil.exe /l

with the Get-TimeZone cmdlet, we can verify the work done.


Thanks for reading my post. I hope you find it useful.

If you want to know more about the Set-TimeZone cmdlet, check out this link.