Advertisement
dantpro

Rebuid WMI

Mar 27th, 2014
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.55 KB | None | 0 0
  1. net stop winmgmt
  2. pause
  3.  
  4. c:
  5. cd c:\windows\system32\wbem
  6. rd /S /Q repository
  7.  
  8. regsvr32 /s %systemroot%\system32\scecli.dll
  9. regsvr32 /s %systemroot%\system32\userenv.dll
  10.  
  11. mofcomp cimwin32.mof
  12. mofcomp cimwin32.mfl
  13. mofcomp rsop.mof
  14. mofcomp rsop.mfl
  15.  
  16. for /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%s
  17. for /f %%s in ('dir /b *.mof') do mofcomp %%s
  18. for /f %%s in ('dir /b *.mfl') do mofcomp %%s
  19.  
  20. mofcomp exwmi.mof
  21. mofcomp -n:root\cimv2\applications\exchange wbemcons.mof
  22. mofcomp -n:root\cimv2\applications\exchange smtpcons.mof
  23. mofcomp exmgmt.mof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement