Advertisement
dantpro

Repair WMI

Mar 27th, 2014
129
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. net stop winmgmt
  2. c:
  3. cd %systemroot%\system32\wbem
  4. rd /S /Q repository
  5.  
  6. regsvr32 /s %systemroot%\system32\scecli.dll
  7. regsvr32 /s %systemroot%\system32\userenv.dll
  8.  
  9. mofcomp cimwin32.mof
  10. mofcomp cimwin32.mfl
  11. mofcomp rsop.mof
  12. mofcomp rsop.mfl
  13. for /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%s
  14. for /f %%s in ('dir /b *.mof') do mofcomp %%s
  15. for /f %%s in ('dir /b *.mfl') do mofcomp %%s
  16. echo DONE reboot
  17. pause
Advertisement
RAW Paste Data Copied
Advertisement