Saturday, May 13, 2017

SCCM Client - Manual install and unintsall



  SCCM Client Installation:- 



We followed the following steps to install the client successfully

The SCCM 2012 client is stored on your SCCM Server in the Client folder under SMS_SITECODE(\\SCCMSERVER\SMS_SITECODE\Client\ or  C:\Program Files\Microsoft Configuration Manager\Client\)



1     Copy the client folder to the client machine
2     Open an admin command prompt
3     Change the current directory to the client folder that you copied i.e. c:\client
4     Run the following command

ccmsetup.exe /source:c:\client SMSMP=<your mp fqdn> SMSSITECODE=<your Site Code>

for example:  C:\client\ccmsetup.exe /source:c:\client SMSMP=XYZ SMSSITECODE=ABC


Run the above command line, then It will create ccmsetup folder inside C:\windows\ccmsetup,You can check SCCM installation status in ccmsetup.log(C:\windows\ccmsetup\ccmsetup.log)

ccmsetup.log is exiting with return code 0 that mean SCCM client installed Successfully.

When client is installed go to control panel, Press configuration manager, Go to action-tab and run below policy.

Machine Policy retrieval & Evaluation cycle
User policy retrieval & Evaluation cycle




Then press ok. The client will now download and apply your client policies.

  SCCM Client Uninstall:- 

 

To uninstall the Configuration Manager client, Open a command prompt (Run as administrator)

Type: C:\windows\ccmsetup\ccmsetup.exe /uninstall



To complete SCCM uninstallation, Please  delete below folder and registry.




c:\windows\ccm
c:\windows\ccmcache
c:\windows\ccmsetup
c:\windows\smscfg.ini
reg delete HKLM\software\Microsoft\ccm
reg delete HKLM\System\CurrentControlSet\Services\clisvcl
reg delete HKLM\System\CurrentControlSet\Services\ccmexec
reg delete HKLM\Software\Microsoft\NAL
reg delete HKLM\software\Microsoft\CCMSETUP
reg delete HKLM\software\Microsoft\SMS
reg delete HKLM\software\Microsoft\Systemcertificates\SMS\Certificates

  You may use batch script for complete SCCM client removal:-


net stop ccmexec
net stop ccmsetup
C:\Windows\ccmsetup\ccmsetup.exe /uninstall
timeout /T 100 >nul
rd c:\windows\ccm  /S /Q
rd c:\windows\ccmcache /S /Q
rd c:\windows\ccmsetup  /S /Q
del c:\windows\smscfg.ini
reg delete HKLM\software\Microsoft\ccm  /f
reg delete HKLM\System\CurrentControlSet\Services\clisvcl   /f
reg delete HKLM\System\CurrentControlSet\Services\ccmexec   /f
reg delete HKLM\Software\Microsoft\NAL   /f
reg delete HKLM\software\Microsoft\CCMSETUP /f
reg delete HKLM\software\Microsoft\SMS /f
reg delete HKLM\software\Microsoft\Systemcertificates\SMS\Certificates /f
timeout /T 120 >nul
rd c:\windows\ccm  /S /Q


For log viewer you can use CMTrace.exe.


Note: Please find My Youtube video's Click Here