Restart Agent using SDK
Description
Section titled “Description”Sets an action to restart an agent.
Syntax
Section titled “Syntax”RestartAgent(Byval UnitName as String, Byval UnitType as String) as Boolean
Parameters
Section titled “Parameters”UnitName (String)
The name 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”VBScript
Set oCMS = CreateObject("CapaInstaller.SDK")Wscript.echo oCMS.RestartAgent("Klient", "1")