February 6, 2011

can't reinstall sccm client on machine 'MSI: Could not delete key'

Please find below scenarios with respective troubleshooting steps- MSI: Could not delete key \SOFTWARE\Classes\CLSID\{84ECA343-5158-48BB-87C3-37EF4B919F20}. Verify that you have sufficient access to that key, or contact your support personnel.


  1. Open command prompt window with run as account domain\smsclient account (to avoid any access related issue)
  2. Run ccmclean .exe /Q /All (I know that we can remove sccm client with ccmsetup.exe /uninstall switch but it seems that legacy sms client settings prevent sccm upgrade and thus, it needs to be uninstalled properly)
  3. Run installsccm.bat file on machine to install sccm client (please verify ccmsetup.log file for successful installation)

MSI: Setup was unable to create the WMI namespace CCM\SoftwareMetering Agent The error code is 80041002

  1. Open command prompt window with run as account tp1\srvsmsclinst (to avoid any access related issue)
  2. Run ccmclean .exe /Q /All (I know that we can remove sccm client with ccmsetup.exe /uninstall switch but it seems that legacy sms client settings prevent sccm upgrade and thus, it needs to be uninstalled properly)
  3. Run setWMI.bat to repair WMI (I use below script and have got 100% success @all time)
  4. Run installsccm.bat file on machine to install sccm client (please verify ccmsetup.log file for successful installation).
'setWMI.bat
'script here
net stop ccmexec

net stop winmgmt
%SYSTEMDRIVE%
CD %windir%\system32\wbem
rd /S /Q repository
net start winmgmt
net start ccmexec
for /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%s
for /f %%s in ('dir /b *.mof') do mofcomp %%s
wmiprvse /regserver

Hope it helps.

1 comment:

  1. Atul,

    Thanks for writing this. I have used a few of your articles recently in troubleshooting SCCM client install issues. They have helped greatly. I am bookmarking your blog and look forward to reading more.

    ReplyDelete