Sets an action to restart an agent.
RestartAgent(Byval UnitName as String, Byval UnitType as String) as Boolean
The name of the unit
Type of Unit
- "1" (Computer)
- "2" (User)
If a user is specified, the agent on the computers linked to the user will be restarted.
Boolean. The function returns True if successful, otherwise false.