WMI PerfCounter reparieren

Aus MyWiki
Zur Navigation springen Zur Suche springen

Bei einem PC konnten diverse Performance Counter nicht mehr abgefragt werden (z.B. Win32_PerfRawData_PerfDisk_LogicalDisk).
Diese Klassen war nicht mehr vorhanden.
Reparieren kann man das mit dem Befehl: lodctr /R

Bei allgemeinen Problemen mit WMI kann folgendes helfen: 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.