You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried to run the Set-WindowsTimeZone script on several builds of Windows 10 and 11. The only change I made to the script is the key for AzureMaps.
Showcase:
The fix
During the Enable-LocationServices function, the following code is used to let Windows apps access location:
I have tried to run the Set-WindowsTimeZone script on several builds of Windows 10 and 11. The only change I made to the script is the key for AzureMaps.
Showcase:
The fix
During the Enable-LocationServices function, the following code is used to let Windows apps access location:
Intune/Autopilot/Set-WindowsTimeZone.ps1
Lines 181 to 182 in 539205c
If we take a look at the details of this policy setting, a DWord of 0 means the user is in control. We instead need to set it to 1.
With the value set to one, the script executes as expected:
However, by doing so, the location services are still force enabled after the script finished execution:
To get rid of this, I've edited the Disable-LocationServices function to include the LetAppsAccessLocation DWord and set it to 0:
After execution:
The text was updated successfully, but these errors were encountered: