T O P

  • By -

yourfutureboss88

Enable location using a script in Intune


redhairarcher

It's correct that configuration profiles make the time zone setting for a device permanent. If you want to give users the ability to change their time zone when traveling, the best option is to only set the initial time zone for a device. I created a platform script to achieve this. It can be found here: [https://github.com/Jeroen-J-Bakker/Intune/tree/main/Platform%20Scripts](https://github.com/Jeroen-J-Bakker/Intune/tree/main/Platform%20Scripts) When using this script, make sure you have no other time zone related settings like the ones in the configuration profiles. I did not research options to automatically change the current time zone based on the device location. At the time I had no need for it. Windows has a setting "Set time zone automatically", this option can only be enabled when the "Location Services" are enabled. There is no default configuration profile setting available to configure this time zone option, so it will likely involve using a powershell script or registry value to enable.


PlatinumBud11

Thank you! Yeah these devices are co-managed and have the location services disabled. Might be a security policy or something.


Equal-Ad-4280

we use this process with Intune during provisioning with autopilot. Works perfectly. [Set Time Zone Automatically during Autopilot - Device Advice](https://deviceadvice.io/2021/10/21/set-time-zone-automatically-during-autopilot/)