Knowledge BaseError installing Office 2010 on Windows XP, WMI connection failes
W P Staff asked 7 years ago

When i try to upgrade Office 2007 with Office 2010 on Windows XP, it uninstalls Office 2007 and quits with Error that Setup has experienced an error. After investigation i noticed that WMI connection to local server fails in Computer Management. How do i fix this?

1 Answers
W P Staff answered 7 years ago

Try the bellow shell script to Rebuild WMI components:
 
net stop winmgmt
c: 
cd %systemroot%\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 
echo DONE reboot 
pause