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.

Tip: SOTI MobiControl has several predefined legacy scripts, 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 list of available legacy script commands, see Using Script Commands.

To send a script to a device:

Procedure

  1. In the SOTI MobiControl Web Console, navigate to Main Menu > Devices.
  2. On the Devices window, right-click the device or devices you want to send scripts to and select Send Script.
  3. 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 10 devices.
    • PowerShell 32-bit Compatibility: Use standard PowerShell language (32-bit) features to make changes to your devices. Supported on Windows 10 devices.
  4. 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.
  5. Optional: Save your script for future use.
    1. Select Manage Scripts to open the Manage Scripts dialog box.
    2. Select the Add New icon: to clear the Script Editor in preparation for a new script.
    3. Select the Script Type icon: to select the correct script language.
    4. Enter your script in the Script Editor.
    5. Select Save Script.
    6. Select Close to return to the Send Script dialog box.
  6. Choose a delivery method for the script from the Delivery dropdown list:
    Delivery MethodDescription
    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.
  7. 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.
  8. Optional: To monitor the status and output of your script, enable Capture Script Status and Output. This option saves scripts results to the device. To learn more about the Capture Script Status and Output option, see View the Status of Sent Windows Modern Scriptsfor Windows Modern devices and View the Status of Sent macOS Scripts for macOS devices.
  9. 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.
  10. Select Send Script.