Broken WMI pls. advise how to fix. My solutions below did not help.
hi,
i running windows 7 error:
log name: application
source: microsoft-windows-wmi
date: 10/25/2012 9:57:42 am
event id: 4
task category: none
level: error
keywords: classic
user: n/a
computer:
description:
error 0x80041002 encountered when trying load mof c:\windows\system32\wbem\tscfgwmi.mof while recovering .mof file marked autorecover.
warning:
log name: application
source: microsoft-windows-wmi
date: 10/25/2012 9:57:44 am
event id: 63
task category: none
level: warning
keywords: classic
user: system
computer:
description:
provider, faronicsstoragespace, has been registered in windows management instrumentation namespace root\faronics use localsystem account. account privileged , provider may cause security violation if not correctly impersonate user requests.
steps did resolve did not fix it...
1. i ran script did not fix it.
net stop winmgmt
pushd "%windir%\system32\wbem"
%%i in (*.dll) regsvr32 -s %%i
mofcomp.exe /regserver
scrcons.exe /regserver
unsecapp.exe /regserver
winmgmt.exe /regserver
wmiadap.exe /regserver
wmiapsrv.exe /regserver
wmiprvse.exe /regserver
if exist "%windir%\syswow64\wbem" (
goto os_64
) else (
goto gate1
)
:os_64
pushd "%windir%\syswow64\wbem"
%%i in (*.dll) regsvr32 -s %%i
mofcomp.exe /regserver
scrcons.exe /regserver
unsecapp.exe /regserver
winmgmt.exe /regserver
wmiadap.exe /regserver
wmiapsrv.exe /regserver
wmiprvse.exe /regserver
popd
:gate1
ver | find "xp" > nul
if not %errorlevel% == 1 (
goto ver_xp
) else (
goto ver_7
)
:ver_xp
%%i in (*.mof) mofcomp %%i
%%i in (*.mfl) mofcomp %%i
goto end
:ver_7
"%windir%\system32\wbem\winmgmt.exe" /resetrepository
goto end
:end
net start ccmexec
net start winmgmt
popd
del /f /q "%windir%\temp\fixwmi.bat"
exit
2. deleted wbem folder, restarted and recreated no avail.
3. installed hotfix stated here did not http://support.microsoft.com/kb/2465990?wa=wsignin1.0
4. confirmed firewalls off. turned off antivirus programs.
5. i ran winmgmt /verifyrepository and received have consistent state.
6. ran winmgmt /salvagerepository and received consistent state.
any idea else try? thanks!
hi,
please try rebuild wmi repository below , check result.
a. disable , stop wmi service.
sc config winmgmt start= disabled
net stop winmgmt
b. @ command prompt (cmd), change wbem folder.
cd %windir%\system32\wbem
c. rename repository folder
rename repository repository.old
d. re-enable wmi service.
sc config winmgmt start= auto
e. run following command manually recompile of default wmi .mof files , .mfl files
cd %windir%\system32\wbem
/f %s in ('dir /b *.mof *.mfl') mofcomp %s
f. reboot system.
please remember click “mark answer” on post helps you, , click “unmark answer” if marked post not answer question. can beneficial other community members reading thread.
Windows Server > Management
Comments
Post a Comment