Purpose
To effectively manage Location services on Wear OS devices, administrators can use the RunScript feature in SureMDM to remotely enable or disable Location and restrict users from modifying Location settings. This ensures that Location behavior aligns with organizational policies, prevents unauthorized changes, and supports use cases such as device tracking, compliance, and location-based services in enterprise environments.
Prerequisites
- Access to SureMDM Console
- Wear OS device(s) enrolled in SureMDM
- Device(s) online and reachable
- Required permissions to execute Run Script
- Device configured in Device Owner (DO) mode (recommended for full control)
Steps
RunScript 1: Steps to Disable Location Configuration
- On the SureMDM Console -> Jobs -> New Job
- Select the target Wear OS -> Click on Run Script
- Enter the Job Name and Enter the following script:
!#suremdm
DisableLocationConfiguration(true)
4. Save and Deploy to the Device.

Parameter Explanation:
- false → Location is turned OFF
- true → Location is turned ON
RunScript 2: Steps to Toggle Location State
- On the SureMDM Console -> Jobs -> New Job
- Select the target Wear OS -> Click on Run Script
- Enter the Job Name and Enter the following script:
!#suremdm
ToggleLocationState(false)
4. Save and Deploy to the Device.

Parameter Explanation:
- true → User is not allowed to change Location settings
- false → User can modify Location settings
Expected Results
- Location state is controlled as per the deployed script
- Users are restricted from modifying Location settings when configured
- Device Location behavior aligns with organizational policies
Advantages
- Provides centralized control over Location services
- Prevents unauthorized changes to Location settings
- Enhances security and privacy compliance
- Supports tracking and location-based enterprise use cases
Conclusion
Using RunScript in SureMDM, administrators can effectively control both the state and configuration of Location services on Wear OS devices, ensuring improved security, compliance, and operational efficiency.
Need more help? Here’s how to get help from our experts.