Sending Scripts to Devices
About this task
Use scripts to execute commands on your devices. You can send scripts to Android Plus, Linux, macOS, Windows Modern, and Windows Desktop Classic devices.
Note: SOTI MobiControl has several predefined legacy scripts ready for use such as activate connection, show message, and wipe device. You can use one of SOTI MobiControl's predefined scripts or create a custom script. For a full list of available legacy script commands, see Using Script Commands.
To send a script to a device:
Procedure
- In the SOTI MobiControl Web Console, navigate to .
- On the Devices window, right-click on a device or devices you want to send scripts to and select Send Script.
-
Choose a script type:
- JavaScript: Use standard JavaScript language features to make changes to your devices. Only supported on Android Plus devices. Learn more at Android Plus JavaScript Scripts.
- Legacy: Use SOTI MobiControl generated scripts to make changes to your devices. Supported on all devices that support scripts.
- PowerShell Native: Use standard PowerShell language (64-bit) features to make changes to your devices. Supported on Windows devices running Windows 10.
- PowerShell 32-bit Compatibility: Use standard PowerShell language (32-bit) features to make changes to your devices. Supported on Windows devices running Windows 10.
-
Enter the script into the Script Editor. You can also select a saved script from the Execute Following Script dropdown list.
Select the full screen icon: to enter full screen editing mode.
- Optional:
Save your script for future use.
- Select Manage Scripts to open the Manage Scripts dialog box.
- Select the Add New icon: to clear the Script Editor in preparation for a new script.
- Select the Script Type icon: to select the correct script language.
- Enter your script in the Script Editor.
- Select Save Script.
- Select Close to return to the Send Script dialog box.
-
Choose a delivery method for the script from the Delivery dropdown list:
Delivery Method Description SOTI MobiControl Agent Sends the script to the SOTI MobiControl agent. Platform Notification Service Sends the script to the device using the device's native operating system messaging system. SMS Sends the script to the device using the SOTI MobiControl Messaging service. Not all device types support all delivery methods. - Optional: If you selected the SOTI MobiControl Agent delivery option, turn off the Queue Messages for Offline Devices toggle to prevent message queuing for offline devices.
- Optional: Select Capture script status and output to have the ability to view the status of sent Windows Modern scripts. You can also view the resulting output of those scripts. This toggle gets enabled by default with Queue Messages for Offline Devices .
- If applicable, select the warning message at the bottom of the dialog box to see which of the selected devices cannot receive scripts and why.
- Select Send Script.