For For Windows 2008 and Windows Vista/7 winmgmt /salvagerepository For Windows Server 2003 rundll32 wbemupgd, RepairWMISetup
- cd /d %windir%system32wbem
- for %i in (*.dll) do RegSvr32 -s %i
- for %i in (*.exe) do %i /RegServer
Note that none of the above two methods restore the missing files related to Windows Management Instrumentation (WMI). So, below is a comprehensive repair procedure that restores all the missing WMI modules. In case of missing WMI modules, you may use the following method.
Comprehensive rebuild method
Important note: If you’ve installed a Service Pack, you need to insert your Windows XP CD with Service Pack integration (called as the Slipstreamed Windows XP CD). If you don’t have one, you may point to the %Windir%ServicePackFilesi386 folder for a recent version of the system files required during WMI repair. Or you may create a slipstreamed Windows XP CD and insert it when prompted. Click Start, Run and type the following command, and press ENTER: rundll32.exe setupapi,InstallHinfSection WBEM 132 %windir%infwbemoc.inf Insert your Windows XP CD into the drive when prompted. Repair process should take few minutes to complete. Then restart Windows for the changes to take effect. For XP/2k3/2000 //
1. Open a CMD prompt on the server and change directory to %windir%System32WBEM (SysWOW64WBEM on x64) 2. Execute the following:FOR /f %s in ('dir /b /s *.dll') do regsvr32 /s %sNet stop /y winmgmtFOR /f %s in ('dir /b *.mof *.mfl') do mofcomp %sNet start winmgmt
Note: Don’t attempt to compile the MOF files in the bini386 folder on a site server, as we contain stub files (names start with an underscore character such as _smsprov.mof) that need to be populated with site specific data through other means.