SCOM Trick 19 – Remove SCOM agent command

Once in a while you will encounter a situation where you will have to uninstall the agent from a command line. For instance if somebody shutdown a SCOM test environment while forgetting to do the uninstall of all agents first. They will all be active and pointing to a non-existing server and giving errors and trouble. So here are some ways of removing an agent if you cannot use the SCOM console for instance to uninstall them.
Agents: remove configured management group or uninstall agent using command line
Brute Force Uninstall of Management Group
Windows Agent Install MSI Use Cases and Commands
If you are trying to remove or change an agent through the manual route from a machine by using the add/remove programs option you might also run into errors, especially on Windows 2008 servers: Microsoft ESENT Keys are required.

Back to the SCOM Tricks general list