Search the Community
Showing results for tags 'offboarding'.
Found 1 result
I present: A CWAutomate Executioner. This script is designed to install itself as a startup task that runs as system. After each startup, it will run a knife right through any CWA Agents that it finds, delete the LTSvc folder, and clear out registry keys. To help make sure this agent is not installed again, it re-creates the LabTech\Service registry key with read only permissions. It also creates the LTSvc directory, but denies everyone read and execute status. These steps should prevent any attempts (ever) to reinstall a LabTech agent on the system. You can save and run the .bat file or just paste the content into an Execute Script block, it will install from any temporary location automatically. After it has installed, you can run it without waiting for a restart with: schtasks.exe /run /i /tn "CWAutoMaintenance" The script has a few other tricks: If you set LOGGINGPATH on line 3 to a file path the actions will be recorded. If you set it to CON, it will just output everything as it runs. You can pass as a parameter any of the labels, and it will jump to that label. Some options: UNINSTALL - Will just perform the uninstall, without installing the scheduled task. Does not exit until the process has completed. DELAYUNINSTALL - Will launch a background call to the script to start in 2 minutes, and immediately exits. This is safe to even run from CWAutomate since it will not begin the uninstall for 2 minutes after the command finishes. NEVERMIND - Removes the scheduled task. This is just a re-post under a new topic of my original comment under this thread: https://www.labtechgeek.com/topic/3702-block-former-clients-agents-from-eating-up-licenses/?do=findComment&comment=22906 CWAutomateDestruction.zip Keywords: destroy destruction offboarding removal remove agent ban banned blacklist blacklisting permanent prevent execute