Wednesday, October 23, 2019

SCCM client failed : Setup failed due to unexpected circumstances

Error:

File C:\Windows\ccmsetup\{8971B736-FB0A-4D07-AE81-82D40BBCD630}\client.msi installation failed. Error text: ExitCode: 1603

Action: CcmFixupServiceConfigInit.

ErrorMessages:

Setup failed due to unexpected circumstances

The error code is 80070002

Solution :

If so, you may need to use the following PowerShell lines to remove the left over services which can no longer be self-healed by the CcmFixupServiceConfigInit action in the client.msi


open task manager and kill any running msiexec.exe 
then reinstall again via ccmsetup.exe or via SCCM console 
$Computer = 'Machinename'

(Get-WmiObject Win32_Service -ComputerName $Computer -filter "name='ccmexec'").Delete()

(Get-WmiObject Win32_Service -ComputerName $Computer -filter "name='ccmsetup'").Delete()

(Get-WmiObject Win32_Service -ComputerName $Computer -filter "name='smstsmgr'").Delete()

Adding devices to SCCM collection using query method

  Overview   The "Add Machines to Collection" tool is a simple, user-friendly UI-based solution designed to quickly add machines...