Enable Hexnode access to Windows location services using PowerShellSolved

Participant
Discussion
1 day ago Nov 25, 2026

I’m trying to enable location access for Hexnode on Windows devices. Is there a PowerShell script that can turn on Location Services or allow the Hexnode app/agent to access location on Windows? I want to test it on one device first before pushing it to the rest of the fleet.

Replies (3)

Marked SolutionPending Review
Hexnode Expert
1 day ago Nov 25, 2026
Marked SolutionPending Review

Hi @harold,

You can use a PowerShell script to toggle Windows Location Services for applications, then deploy it to Windows devices through Hexnode.

Hexnode has a sample script documented here: https://www.hexnode.com/mobile-device-management/help/script-to-turn-on-off-location-services-for-apps-on-windows/

Recommended rollout approach:

  1. Run the script on a single test Windows device first.
  2. Confirm that Location Services are enabled at the Windows system level.
  3. Verify that Hexnode is able to collect location data from the device after the script is applied.
  4. Once the behavior is confirmed, deploy the script to the required Windows device group.

Testing on one device first is strongly recommended, especially if your environment has different Windows versions or privacy configurations.

Regards,
Isabel Lora
Hexnode UEM

Marked SolutionPending Review
Participant
1 day ago Nov 25, 2026
Marked SolutionPending Review

One thing to watch for: Windows privacy settings can block location even if the device is enrolled properly. In our case, confirming that Location Services was enabled at the OS level made it easier to tell whether the script had applied correctly.

Marked SolutionPending Review
Hexnode Expert
1 day ago Nov 25, 2026
Marked SolutionPending Review

Correct @ezekiel . Hexnode UEM can request and report location only when Windows allows location access. If the Windows location privacy setting is disabled, the device may not return location data as expected. The PowerShell script is intended to update that Windows-side setting, so validation on a test device is the best first step before a wider rollout.

Regards,
Isabel Lora
Hexnode UEM

Save