The PowerShell command to check, set, or list time zones is simple but often overlooked. You can retrieve current time zones, convert between them, or modify your system’s time zone with a few key cmdlets—no coding required if you know the basics. First, ensure PowerShell is updated: run `Get-Host` and check the version (Windows PowerShell 5.1+ or PowerShell Core 7+ works). For most scenarios, the Get-TimeZone and Set-TimeZone cmdlets are your tools.
What You'll Need
- Admin or elevated access to Windows PowerShell (run as Administrator if prompted).
- A PC running Windows 10/11, Windows Server 2019+, or PowerShell Core 7+ (if cross-platform).
- No additional software—built into Windows.
Step-by-Step
- List Available Time Zones
Run this command to see all installed time zones:
Get-TimeZone | Format-Table -AutoSizeExample output shows names like "Pacific Standard Time" or "Eastern Time (US & Canada)". Alternative (full details): UseGet-TimeZone | Select-Object DisplayName, Idto see both friendly names and numeric IDs (e.g.,UTC-8:00for PST). Note: IDs differ by region (e.g.,Pacific Standard Timemight be100in some locales). - Get Current Time Zone
Use:
Get-TimeZone | Where-Object { $_.DisplayName -eq $env:USERDOMAIN -or $_.DisplayName -eq $env:USERNAME }For Windows, the time zone is tied to the system’s registry under:HKLM:\SYSTEM\CurrentControlSet\Control\TimeZoneInformationTo confirm, run:Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" | Select-Object StandardTimeZone, DaylightTimeZoneNote: This requires elevation (Admin rights). - Set a New Time Zone
To change to a zone (e.g., "Mountain Standard Time"):
Set-TimeZone -Id "Mountain Standard Time"Verify: RunGet-TimeZone | Where-Object { $_.DisplayName -eq "Mountain Standard Time" }to confirm. Important: This applies to the *system* time zone. For user-specific changes (e.g., in Windows OS), use:New-ItemProperty -Path "HKCU:\Control Panel\International" -Name "TimeZone" -Value "Mountain Standard Time" -PropertyType String -Force(Requires admin rights for HKCU changes.) - Convert Between Time Zones
Use
ConvertTimeto compare times across zones. Example:ConvertTime -InputTime "10:00" -TimeZone "Pacific Standard Time" -ToTimeZone "Eastern Time (US & Canada)"Output:"12:00"Timezone IDs: Use theIdfromGet-TimeZoneor the registry (see Step 2). - Fix Time Zone Conflicts
If the system time zone isn’t saved (e.g., after a manual change), reset it via:
bcdedit /set timezone [Correct ID](e.g.,bcdedit /set timezone Pacific Standard Time) Note: Requires rebooting. For PowerShell-only changes, use:Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" -Name "StandardTimeZone" -Value "[Correct ID]" -Force(Admin rights required.)
Common Mistakes
- Using Display Names Directly
Time zones must use their
Id(e.g.,Pacific Standard Time=UTC-8:00), not the friendly name. Example:Set-TimeZone -Id "Pacific Standard Time"fails—use the numeric ID instead. Fix: List all IDs withGet-TimeZone | Select-Object DisplayName, Id. - Permissions Issues Changes to
- Time Zone ID Typos Common errors:
- Cross-Platform Confusion PowerShell Core 7+ supports time zones on Linux/macOS but uses a different command:
HKCU or the boot configuration (BCD) require admin rights. Run PowerShell as Administrator.
Fix: Sign out and back in or restart. For registry errors, check Event Viewer for access denied logs.
Mountain Time (wrong) vs. Mountain Standard Time (correct). Use the exact name from Get-TimeZone.
Fix: Copy-paste the correct ID from the list.
timedatectl list-timezones and timedatectl set-timezone "America/New_York".
Windows only: Use Get-TimeZone and Set-TimeZone.
Tips
- Shortcut for Current Zone
Use
Get-TimeZoneand filter by your domain/user name to avoid errors:Get-TimeZone | Where-Object { $_.DisplayName -match ".*$env:USERDOMAIN.*" } - Batch Time Zone Changes
For scripts, preload IDs into a variable:
$ZoneId = "Pacific Standard Time"Then useSet-TimeZone -Id $ZoneId. - NTP Sync Issues If time zones misalign with NTP (Network Time Protocol), run:
- Cross-Region Time Zones Some zones (e.g., "America/Los_Angeles") require the full IANA name. Use:
- Offline Use If offline, set the time zone before reconnecting to sync. Edit the registry manually for critical systems.
Set-Date -TimeZone "UTC" -Confirm:$false
Then manually set the desired zone.
Get-TimeZone | Where-Object { $_.DisplayName -eq "America/Los_Angeles" }
to verify before setting.
Troubleshooting
If PowerShell reports errors (e.g., "Cannot find drive"), check these steps in order:
- Restart the System Time zone changes may not apply until reboot. Log out and back in if possible.
- Update PowerShell
Run
Get-Host—if older than v5.1, update via Windows Update orwinget install Microsoft.PowerShell. - Verify Registry Permissions
If
Set-TimeZonefails, inspect:Get-Acl "HKLM:\SYSTEM\CurrentControlSet\Control\TimeZoneInformation"Add your user to the "SYSTEM" group if access is denied. - Revert to Default Time Zone
Reset using:
Set-TimeZone -Id "UTC"(or the system’s default ID). - Test with a Known Zone Replace with a common ID (e.g., Pacific Standard Time ) to isolate errors.
- Check Event Logs
Look for errors in
ApplicationorSystemlogs under:Event Viewer > Windows Logs > ApplicationSearch for "TimeZone" or "PowerShell".
If the system time still doesn’t update, the hardware clock may be misaligned. Run:
Set-TimeZone -Id "[Correct ID]" -Force
and set the system clock manually in the BIOS/UEFI.
Frequently Asked Questions
1. Why does "Set-TimeZone" say "No time zone entries" exist?
This happens if the registry is corrupted or the time zone ID is invalid. Reinstall Windows or use the registry editor to restore defaults (backup first).
2. Can I use a non-standard time zone (e.g., "Pacific Daylight Time" instead of "Pacific Standard Time")?
No. PowerShell only supports standardized IANA time zones. Use the exact names from Get-TimeZone.
3. Will changing the time zone affect my scheduled tasks?
Yes. Scheduled tasks rely on the system time zone. Re-schedule them after changing the time zone.
4. How do I set a time zone for a user-specific profile?
Edit the registry under HKCU:\Control Panel\International with the correct time zone ID (e.g., Pacific Standard Time). Requires admin rights.
5. Can I set a time zone in PowerShell Core (Linux/macOS)?
No. PowerShell Core uses timedatectl for time zones. The commands are:
timedatectl list-timezones (list) and
timedatectl set-timezone "America/New_York" (set).
6. My time zone changes, but the system clock doesn’t update. What’s wrong?
This often means the hardware clock is out of sync. Force an update by running:
Set-TimeZone -Id "[Correct ID]" -Force
and manually sync the hardware clock in BIOS or via ntpdate (admin-only).