Run Script (Windows)
The Run Script job empowers administrators to execute customized scripts on enrolled devices, offering a dynamic approach to device management. By using the Run Script job, administrators gain the flexibility to address a wide range of scenarios, from software updates and system diagnostics to configuration adjustments.
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 > Windows > Run Script.
In the Run Script prompt, enter a Job Name and Script and click Save.
Or
To add a pre-defined script in the Script box, follow these steps:
a. Click a setting displayed on the left panel.
A run script will appear on the screen.
b. Configure the script if required and click Validate.
A confirmation of successful validation will be displayed.
c. Click Insert.
Or
Click Browse to select a .txt, .ps1, .bat and .vbs file that has the script from the specified location.
The run script will be inserted in the Script box
Select Execute In Currently Logged In User Account to run the script in currently logged in user context on the device.
d. Click Save.
The newly created job will be listed in the Jobs List section.
Go back to the Home tab and select the Windows device(s) or group(s).
Click Apply to launch the Apply Job/Profile To Device prompt.
Select the job under All Jobs/Profiles.
Click Apply in the Apply/Profile To Device prompt.