Skip to main content

Automate Agent - Reinstall

Summary

This script is used to perform a full uninstall and reinstall of the CWA Agent on the target machine through the ConnectWise Control RMM+ add-in.

Time Saved by Automation: 5 Minutes

Sample Run

Target: Windows and Mac agents

Sample Run

Dependencies

System Properties

NameExampleRequiredDescription
RMMPlus_AccessKeyajw8fh2p93ufn;o31ifu2091j23oifTrueThis is the key set up in the CW Control RMM+ Plugin so Automate can reach out to gain access to the API.
RMMPlus_HeadersOrigin: site.site.comTrueThis is the URL (without http/https) for the CW Control server. This value needs to match the value in the RMM+ Plugin configuration in CW Control.
RMMPlus_StaleAgentThreshold30TrueThe number of days to indicate what a "stale" agent is to the scripts. 30 is the default.
RMMPlus_Timeout1000TrueThe default timeout for commands run via RMM+ through Automate. 1000 is the default.

Output

  • Script log messages only.