SCOM Agent Installation Failure
If you are encountering this error “Product: System Center Operations Manager 2012 Agent — Error 25211.Failed to install performance counters.. Error Code: -2147024809 (The parameter is incorrect.).” when installing SCOM agent on a target machine, so obviously you have a problem in the registry.
This can occur when the agent is uninstalled previously improperly or another WMI based program has corrupted the registry.
To verify the issue, try to launch PerfMon and add a given performance counter.
The solution is to rebuild the performance counters. the complete procedure is described here.
However, try first to use a recovery tool like CCleaner to fix the issue. In my case that has worked efficiently.
NB: Don’t forget to backup your registry before any operation.