Jump to content

[Found] Fix for windows management instrumentation


Recommended Posts

Posted

I kept getting loads of Windows Management Instrumentation related errors and such, and found a way to rebuild all of this.

 

net stop sharedaccess
net stop winmgmt

c:
cd %windir%\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
mofcomp exwmi.mof
mofcomp -n:root\cimv2\applications\exchange wbemcons.mof
mofcomp -n:root\cimv2\applications\exchange smtpcons.mof
mofcomp exmgmt.mof

gpupdate /force /boot

 

After running this through (and fixing some other things) I had group policies and things working a lot better :)

 

fooby

  • 5 months later...
Posted

microsoft have a utility that checks wmi and diagnoses it , it then goes off creates a log file and you can do it that way :)

 

There is also some funky command that you can use to re install wmi :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...