Skip to main content

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.

note

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:

  1. Navigate to SureMDM Web Console > Jobs > New Job > macOS > Run Script.  

  2. Enter a Job Name.

  3. 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 SectionScript NameDescription
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
  1. Click Save.

    The newly created job will be listed in the Jobs List section.

  1. Go back to Home tab and select the macOS device(s) or group(s).

  2. Click Apply to launch the Apply Job/Profile To Device prompt.

  3. In the Apply Job/Profile To Device prompt, select the job and click Apply.

note
  • 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