1
Tweaking.com Support & Help / Re: Any recommendation for fixing WMI on Windows Server 2012?
« on: August 30, 2016, 12:36:08 pm »
Found this at https://social.technet.microsoft.com/Forums/windowsserver/en-US/8ed26d46-9994-4052-a307-5b071805aea8/wmi-corrupt-how-to-reinstallrepair?forum=winservergen
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 (I noticed that you have run this command, but I would suggest that you try it again)
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
If the problem remains, then try the following steps to rebuild the repository:
1. Disable and stop the WMI service.
sc config winmgmt start= disabled (note that there is a blank between '=' and 'disabled')
net stop winmgmt
2. Rename the repository folder (located at %windir%\System32\wbem\repository) to repository.old.
3. Re-enable the WMI service.
sc config winmgmt start= auto
4. Reboot the server to see if the problem remains.
If the above steps cannot help, you may also need to check if some disk sectors or system files are corrupted. You may try "chkdsk" and "sfc /scannow" commands to see if they can help. Otherwise, you may need to reinstall the whole server.
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 (I noticed that you have run this command, but I would suggest that you try it again)
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
If the problem remains, then try the following steps to rebuild the repository:
1. Disable and stop the WMI service.
sc config winmgmt start= disabled (note that there is a blank between '=' and 'disabled')
net stop winmgmt
2. Rename the repository folder (located at %windir%\System32\wbem\repository) to repository.old.
3. Re-enable the WMI service.
sc config winmgmt start= auto
4. Reboot the server to see if the problem remains.
If the above steps cannot help, you may also need to check if some disk sectors or system files are corrupted. You may try "chkdsk" and "sfc /scannow" commands to see if they can help. Otherwise, you may need to reinstall the whole server.