Hi,
Recently I had an SMS client giving me following errors while I tried to install\uninstall SMS Client.
'unable to create namespace 80041002'
'2501 unable to delete WMI namespace CCM\SoftwareMeteringAgent 80041002'
WMIDiag learned me that my WMI was corrupt.
This script solved the issue:
execute following BAT files.
step1.bat
----------
cd /d %windir%\system32\wbem
for %i in (*.dll) do RegSvr32 -s %i
for %i in (*.exe) do %i /RegServer
net stop winmgmt /y
step2.bat
----------
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
mofcomp exwmi.mof
mofcomp -n:root\cimv2\applications\exchange wbemcons.mof
mofcomp -n:root\cimv2\applications\exchange smtpcons.mof
mofcomp exmgmt.mof
Enoy!
woensdag 19 december 2007
Abonneren op:
Posts (Atom)