Opsmgr Agent install Error 25218

Standard

When I install a opsmgr agent manually on a Windows Server 2008 r2 domain controller. I am getting the following error.

1

I used the following steps to resolve the issue:

  1. Start the “wmimgmt.msc
  2. Right click “WMI Control (Local)” if you see the following: “Failed to initialize all required WMI Classes
     2
  3. Stop the “WMI Services
  4. Open a “command prompt” and change the directory to “c:\windows\SysWOW64\wbem
  5. Type the following command to make sure that all WBEM DLL’s are correctly registrered: “for /f %s in (‘dir /b *.dll’) do regsvr32 /s %s
     3
  6. Run the following command “Net stop /y winmgmt
  7. Run the following command “for %i in (*.mof, *.mfl) do Mofcomp %i
     4
  8. Start the “net start winmgmt
  9. Start the “wmimgmt.msc
  10. Right click “WMI Control (Local)” if you see the following: “Failed to initialize all required WMI Classes” 
    5
  11. Install the agent.