Windows Modern Scripts

Execute scripts on Windows Modern devices using SOTI MobiControl.

Send scripts to devices using the method described in Sending Scripts to Devices. Create a script and copy it into the Script Editor.

Send Script section for Windows Modern devices
Command Syntax
--time--

Sets the agent timeout for executing scripts on a Windows Modern device. This feature enables longer-running PowerShell scripts to complete successfully without timing out. You can now configure the agent timeout for up to 1800 seconds (30 minutes).

Applicable Script Types:
  • PowerShell Native
  • PowerShell 32-bit Compatibility
Note: Supported in SOTI MobiControl 2025.1 and later.
--time--

Replace time with a value in seconds from 1 to 1800. The timeout value determines how long the system allows the script to run before it is terminated.

Example:

--60--
#Enter PowerShell Script below

This example sets the agent timeout to 60 seconds. Insert your PowerShell script below the agent timeout script.