- Open command prompt window with run as account domain\smsclient account (to avoid any access related issue)
- 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)
- Run installsccm.bat file on machine to install sccm client (please verify ccmsetup.log file for successful installation)
- Open command prompt window with run as account tp1\srvsmsclinst (to avoid any access related issue)
- 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)
- Run setWMI.bat to repair WMI (I use below script and have got 100% success @all time)
- Run installsccm.bat file on machine to install sccm client (please verify ccmsetup.log file for successful installation).
'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.
Atul,
ReplyDeleteThanks 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.