Scripting a Trend Micro Officescan removal
So the uninstaller for Trend Micro frequently fails/corrupts (not to mention you can't silently automate it through a system like Kace as it requires password entry to remove). So I'm trying to script the manual removal process, killing services and ripping out registry keys and then ultimately the appropriate program files directory itself.
The smartest way I can perceive doing this is by doing two scripts (the first is already completed). One to disable the services (as it doesn't allow you to actually stop the services outright) and the second to very the services are no longer running prior to ripping everything out (basically, a separation of scripts to ensure a reboot in the middle, so the disabled scripts don't start back up).
I need to verify that 4 processes are not running prior to the continuation of my second script. In my experiences, I've had problems verifying that multiple things are true in a single verification stage of one step. What is the appropriate way to verify that all 4 processes (services) are not running and THEN moving on to start deleting registry keys?
Thanks in advance!
1 Comment
[ + ] Show comment
Answers (0)
Please log in to answer
Be the first to answer this question
Has worked for me many many times. Having the services dead is key - you will hit brick walls in the process if anything's still running. Ultimately you want to accomplish all of those tasks, but aside from having the services stopped, it doesn't really matter in what order. You just want to break it enough that it has no chance to "defend itself" (just a mindset). Registry isn't as defended as GUI changes. You can disable stuff via registry that you cant via the services gui, prime example. - iMonkey 7 years ago