top of page
Search

(99) Microsoft Intune - Windows Auto Time Zone

  • Writer: Mr B SOE way
    Mr B SOE way
  • Feb 22, 2024
  • 1 min read

Two years ago, I mentioned that is a way to set Autopilot Time Zone: https://soeintunedevice.wixsite.com/home/post/35-setting-time-zone-automatically which does require a subscription.


As part of a recent project that aligns with using ACSC Windows Hardening Baseline Policies, https://github.com/microsoft/Intune-ACSC-Windows-Hardening-Guidelines/blob/main/policies/ACSC%20Windows%20Hardening%20Guidelines.json - 'Allow Location' is set to 'Force location Off'


Edit the changes to 'Force Location On. All Location Privacy settings are toggled on and grayed out. Users cannot change the settings and all consent permissions will be automatically suppressed.'


Copy and save this as "Windows - Set Time Zone.ps1"


Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\tzautoupdate' -Name 'Start' -Value 3 -Type DWord

Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location' -Name 'Value' -Value Allow -Type String

Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\W32Time\Parameters' -Name 'Type' -Value NTP -Type String

Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\W32Time\Parameters' -Name 'NtpServer' -Value 'time.windows.com,0x9' -Type String


It should look like this once saved.



PowerShell Script: Upload the .ps1 script

Run this script using the logged on credentials: No

Enforce script signature check: No

Run script in 64 bit PowerShell Host: Yes

During Autopilot, this will pick up the time zone and set accordingly to where you are on every logon.

 
 
 

Komentarze


bottom of page