How to recover a corrupt WMI on Windows 2008

 How to recover a corrupt WMI on Windows 2008


I was having a problem doing a P2V in SCVMM for a couple of Windows 2008 servers and couldnt get the agent to install. SCVMM reported the following error:

The WMI service cannot process the request. Object not found on the SERVERNAME server.

Ensure that the agent is installed and running. If the agent is installed, the WMI object may not have been found.

ID: 3156
 Details: Unknown error (0x80131501)

When I checked the WMI service on the Windows 2008 server it was showing some errors so I did the following to restore it back to default and everything worked like a dream.

1. Disable and stop the WMI service.

  • sc config winmgmt start= disabled
  • net stop winmgmt

2. Run the following commands. 

  • Winmgmt /salvagerepository %windir%\System32\wbem
  • Winmgmt /resetrepository %windir%\System32\wbem


4. Re-enable the WMI service and then reboot the server to see how it goes.

  • sc config winmgmt start= auto



Your Office Anywhere offer a range of Cloud Computing services centred around our Hosted Remote Desktop platform; paid monthly and per user, hosted desktops enable access to core business applications from anywhere and on any device.
Company Registration 5135448 VAT registration 834 5840 16



Tel: 01282 500318  | Web:



Your Office Anywhere, Cardium Outsourcing, Unit 4, Dominion Court, Billington Road, Burnley, Lancashire, BB11 5UB, UK.

 © Your Office Anywhere 2020