I don’t like to clean up very much, but there are certain cases where it really makes fun to clean up. Especially if there a Non-Microsoft product, Powershell and SCOM involved.
In my case a customer decided to replace his Nagios system through SCOM 2012. Cool!!!
Because Nagios also uses an agent for monitoring, one of my first things I did was to write a script to uninstall the Nagios agent from several windows systems.
The idea is to provide a text file containing server names which the script will use to check if the Nagios agent (service) is installed or not. If the service is installed it will uninstall the software. I don’t delete the source files though. I found the sources in the C:\NagiosClient\WindowsClient directory. The “NSClient++.exe” is the actual installation file for the Nagios agent.