In the course of deployment we're successfully removing the MOM agent via the MOM management console, but for some reason the agent software and OnePoint service remain on the servers. This causes various WMI and other errors on the newly unmanaged servers.
To fix this, I wrote a batch file that will forcibly remove the OnePoint service and all Microsoft Operations Manager 2000 software from the target server.
The usage is: KILLMOM [TargetComputer]
@echo offif "%1"=="" goto Syntaxecho.echo WARNING! This command forcibly removes the MOM agent from the target server.echo.echo Press CTRL-C to quit orpauseecho.sc \\%1 stop onepointping 127.0.0.1 -n 40 > nulsc %1 stop snmpping 127.0.0.1 -n 20 > nulsc \\%1 delete onepointrd "\\%1\c$\Program Files\Microsoft Operations Manager 2000" /s /qsc \\%1 start snmpecho The MOM agent has been removed successfully.goto End:Syntaxecho Usage: KillMOM [servername]echo.:End
I keep this batch file on the MOM DAS and run it from there. You must be an administrator on the target computer to successfully uninstall the MOM agent.