Scripting a Trend Micro Officescan removal
10/11/2017 2215 views
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!
Be the first to answer this question