How to rebuild WMI classes on Windows 2003


1. Open a command prompt.

2. Disable Windows Management Instrumentation service

sc config winmgmt start= disabled

3. Stop Windows Management Instrumentation service

net stop winmgmt

4. Change the current folder to %windir%\system32\webm

cd %windir%\system32\wbem

5. Register all WBEM dlls:

for /f %s in (‘dir /b *.dll’) do regsvr32 /s %s

6. Run the following command:

regsvr32 %windir%\system32\tscfgwmi.dll

7. Add all classes and class instances to the WMI repository:

for /f %s in (‘dir /b *.mof *.mfl’) do mofcomp %s

8. Register provider host:

wmiprvse /regserver

9. Register WBEM Server (WMI Service)

winmgmt /regserver

10. Run the following two commands:

winmgmt /clearadap

winmgmt /resyncperf

Regards,

XinJin from GBSD DSI Team

 


Comments (0)

Skip to main content