Failed to uninstall Performance counter when removing MMA
Uninstalling the Monitoring Agent results in the error attached for some unknown reason.
Background info: the Agent was connected to an old SCOM Server with Advisor, I was able to change the SCOM Management Group but Advisor wouldn't install/register due to the Agent seeing that Advisor was setup before on the machine
We need to be able to change the Ops Insight SCOM Management Group or be able to at least uninstall the agent fully to allow movement between old SCOM and new SCOM deployments. My only option left is to reinstall the OS
Only info we found related to this are to FULLY rebuild perf counters as described here http://support.microsoft.com/kb/2554336
In some cases we have seen some .Net issue with managed counters, this blog mentions installing .net 3.5 http://pkjayan.wordpress.com/2012/10/15/unable-to-install-system-center-operations-manager-2012-agent-on-windows-server-2012/
Rather than un-installing the agent, if moving across management group and advisor does not enroll on the new MG, you can clear that advisor registration information from the registry like described here https://social.msdn.microsoft.com/Forums/azure/en-US/8e0ffa61-68a0-4669-a729-ae4cd67cffbc/advisor-connector-enable-status-monitor-failed-to-enable-advisor-connector?forum=opinsights
If that doesn’t help, this should be standard ‘SCOM’ agents and supported thru CSS.
Also, have you checked the thread here about nuking the Advisor registration info? It might just unblock you...