Restart Agent using SDK
Description
Section titled “Description”Sets an action to restart the agent on a computer.
Syntax
Section titled “Syntax”RestartAgent(Byval UnitName as String, Byval UnitType as String) as Boolean
Parameters
Section titled “Parameters”UnitName (String)
The name or UUID of the unit.
UnitType (String)
Type of Unit
- “1” (Computer)
- “2” (User)
Return value
Section titled “Return value”Boolean. The function returns True if successful, otherwise false.
Example
Section titled “Example”Set oCMS = CreateObject("CapaInstaller.SDK")Wscript.echo oCMS.RestartAgent("Klient", "1")