SCOM 2012 – Unable to upgrade agent after upgrade from SCOM 2007

SCOM2012-SCOMAgentUpgradeFails - Peter Heijkamp IT ServicesI have been working on a migration from a System Center Operations Manager 2007 environment to a System Center Operations Manager 2012 environment. The move from SCOM2007 to SCOM 2012 went smooth. Planning is key there. But..

I was unable to upgrade some SCOM agents on several servers after the upgrade. I was presented with the above error stating “Failed to install performance counters” Error 25211. Error Code: -2147024809 (The parameter is incorrect).

I don’t know what caused this error. Some servers have two agents installed. The oldest SCOM2007 one and a newer SCOM2007R2 one. Possibly this is because the oldest is a 32-bit install and the newer one a 64-bit one.

I want these agents uninstalled. When trying to uninstall them or repair them i get the error.

 

The easiest way to remove a SCOM agent from a machine is to use one of the following command lines:

Uninstall SCOM 2007 R2 Agent

msiexec /x {25097770-2B1F-49F6-AB9D-1C708B96262A} /qn /norestart

Uninstall SCOM 2007 SP1 Agent (slipstream only, not RTM upgrade)

msiexec /x {E7600A9C-6782-4221-984E-AB89C780DC2D} /qn /norestart

Uninstall SCOM 2007 SP1 Agent (RTM > SP1 upgrade)

msiexec /x {768DB8BD-CB3A-43F4-9A4C-BA2921D27AD3} /qn /norestart

 

For me those commands did not work. I am still unable to uninstall the SCOM agents and they are still present in the add/remove programs view. Let’s find another solution if you still have the problem like me.

Stop the HealthService or System Center Management Service on the server that you are trying to uninstall the agent.

Then go to C:\Program Files\System Center Operations Manager 2007\

Delete the Health Service State folder (Or move/rename it if you don’t want to delete it).

Try to uninstall the SCOM agent again.

 

This was also not working for me. Time to bring in the big guns. Momclean and regedit. Let’s start with Momclean. You can get it here. I ran the following command:

Cleanmom.exe /CleanAgents

This resulted in the following:

SCOM2007 Cleanmom - Peter Heijkamp IT Services

 

After the use of cleanmom my 2 agents were uninstalled!

 

I hope this was informative for you.

If you like this post please support phits.nl. Thanks!

Print Friendly
Tagged , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>