Send Unit Command
Description
Section titled “Description”This function is used to create a unit command for a mobile device. Supported commands are: SWInventory, HWInventory, SecInventory, ManagedSoftwareInventory, RestartDevice, ShutdownDevice, Lock, PasswordReset, Wipe.
To create a Wipe command you will need Administrator rights for units in the security model.
Some commands require certain capabilities on the device, and they will be rejected if the device does not have those. The capabilities of a device, are displayed in the details tab of a selected device in the Console.
Syntax
Section titled “Syntax”Public Function SendUnitCommand(ByVal deviceUUID As String, command As String, ByVal changelogComment As String) As BooleanParameters
Section titled “Parameters”Return value
Section titled “Return value”Returns a boolean value. True if succeeded, false if not.
Example
Section titled “Example”VBScript
Set oCMS = CreateObject("CapaInstaller.SDK")Wscript.echo oCMS.SetDatabaseSettings("ServerName", "CapaInstaller", False)Wscript.echo oCMS.SetDefaultManagementPoint("2")
Wscript.echo oCMS.SendUnitCommand("CC5904AC-41B8-4D60-A925-D82EB157B594", "RestartDevice", "Cmd from the sdk")