I had a Trend Micro Deep Security Manager server fail and leave dozens of machines running the Trend Deep Security Agent and no way to control them. If you are here, you may know what I mean and what a problem this is.
They were in a state where they were unable to activate on a new server (“Activation Failed - Deactivation Required” or “Unmanaged - Deactivation Required”). The Deep Security Agent was unable to be uninstalled or changed through normal means (“Removal or modification of the application is prohibited by its security settings”). Attempts to reset the Deep Security Agent through the command line per the Trend manual failed (“Forbidden”), The Trend Services were unavailable to stop and access was denied to set them to “Disabled” on start up. The Trend support supplied utility TBCLEAN.EXE also failed.
In short, there was nothing on the Trend site about how to remove an orphaned Agent and Trend support was not particularly fast at coming up with a solution. Here is what I did and is has worked on all Windows operating systems I have in my organization, Windows XP, Windows 7 32 and 64, Windows 2003 R2, and Windows 2008 R2. I would suggest you use it only as a last resort and be very careful, but suit yourself. I’m not your mom and if you screw things up it is entirely your problem:
- Make sure you have the local administrator password for the machine you are working on. Failure to do so may result in a machine that is stuck in Safe Mode that you cannot log in to. I cannot stress this enough.
- Run the MSCONFIG utility and set the affected machine for a Diagnostic Startup and a Safe Boot or Safe Mode, depending on your OS and reboot.
- Log into the machine as local admin and open a command window.
- Run the following commands:
- sc delete ds_agent
- sc delete ds_notifier
- sc delete amsp
- sc delete tmactmon
- sc delete tmevtmgr
- sc delete tmcomm
- Delete the folder C:\Program Files\Trend Micro and all subdirectories
- Run REGEDIT and delete the key HKLM\Sofware\Trend Micro and all subkeys
- Run MSCONFIG again and set the machine to boot normally.
- Reboot the machine and uninstall the Trend Micro Agent through Add Remove Programs or Programs and Features, depending on OS
Now you should be able to reinstall Trend and activate it on the new Trend Deep Security Manager server. I hope this saves you some time and energy.