Article ID: 1717, created on Feb 26, 2007, last review on May 11, 2014

  • Applies to:
  • Plesk for Windows
  • Virtuozzo containers for Windows


1. Create a wmifix.cmd file.

2. Place the script below into newly created wmifix.cmd:

net stop winmgmt



cd c:\windows\system32\wbem

rd /S /Q repository

regsvr32 /s %systemroot%\system32\scecli.dll

regsvr32 /s %systemroot%\system32\userenv.dll

mofcomp cimwin32.mof

mofcomp cimwin32.mfl

mofcomp rsop.mof

mofcomp rsop.mfl

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

for /f %%s in ('dir /b *.mof') do mofcomp %%s

for /f %%s in ('dir /b *.mfl') do mofcomp %%s
net start winmgmt

3. Run the script you just created to fix WMI.

The script above must be run inside the environment where WMI does not work. For example, if WMI is corrupted inside a VE, it is necessary to run this script inside this VE.

85a92ca67f2200d36506862eaa6ed6b8 965b49118115a610e93635d21c5694a8 d02f9caf3e11b191a38179103495106f a914db3fdc7a53ddcfd1b2db8f5a1b9c 2897d76d56d2010f4e3a28f864d69223 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF