Run Script
The Run Script job is a feature within SureMDM that enables administrators to execute customized scripts on devices that have been enrolled in the management system. It provides a way to remotely control and manage devices by running scripts that perform various actions or tasks on those devices. These tasks can range from software installations and configurations to system maintenance and diagnostics.
The Run Script job will be supported only on SureMDM Agent versions 3.2.0 and later.
To create a job with customized scripts and deploy it to the enrolled device(s) or group(s) remotely, follow these steps:
Navigate to SureMDM Web Console > Jobs > New Job > macOS > Run Script.
Enter a Job Name.
In the Script section, provide the necessary script. You can either click Browse File to select a .txt, .ps1, .bat and .vbs file that has the script from the specified location. Imported script will get reflected in the Script section.
or
In the Pre-defined Script section, choose the desired script and click Validate. Once the script is successfully validated, click Insert to add it to the Script section.
Pre-defined Script Section | Script Name | Description |
---|---|---|
Remote Support Management | Enable APNs for Remote Support Enable Long Poll for Remote Support | Uses APNs for Remote Support Uses Long Poll mechanism for Remote Support |
USB Media Control | Allow USB Storage Devices Block USB Storage Devices | Allows all the USB Storage devices Blocks all the USB Storage devices |
User Account Management | Change User Rights to Admin Change User Rights to Standard | Changes the user rights to Admin from Standard Changes the user rights to Standard from Admin |
- Click Save.
The newly created job will be listed in the Jobs List section.
Go back to Home tab and select the macOS device(s) or group(s).
Click Apply to launch the Apply Job/Profile To Device prompt.
In the Apply Job/Profile To Device prompt, select the job and click Apply.
- Run Script feature will work on macOS Agent version >= 3.2.0
- Support for Multiple Run Script types will be applicable on macOS Agent version >= 4.4.0