Monday 9 September 2013

SCCM 2012 Client Failed to install - ExitCode: 1603

The following script was created from much frustration with the SCCM Client not installing on workstations and servers.  Errors were all over the map, from MSI errors to 1603 in the ccmsetup.log file.
The following errors were noted:
  • "File C:\Windows\ccmsetup\MicrosoftPolicyPlatformSetup.msi installation failed. Error text: ExitCode: 1603"
  • InstallFromManifest failed 0x80070643
  • "CcmSetup failed with error code 0x80070643"

Turns out the root cause was WMI corruption, so this little batch script worked great. 

Tested on XP, Windows 7, Server 2003, Server 2003R2, Server 2008, Server 2008R2.

This is the "shotgun" approach to repairing WMI.  Do not reboot your computer immediately after running this, as the WMI is rebuilding in the background.   I manually ran the SCCM Client install about 1 minute after the batch file completed, and it completed successfully. (Yay - another 30 seconds of success!  Now on to my next task...)

Format: BATCH

Copy and paste the text into a batch file.

@echo off
sc config winmgmt start= disabled
net stop winmgmt /y
%systemdrive%
cd %windir%\system32\wbem
For /f %%s in ('dir /b *.dll') do regsvr32 /s %%s
wmiprvse /regserver
winmgmt /regserver
net start winmgmt
for /f %%s in ('dir /b *.mof *.mfl') do mofcomp %%s
exit

SCCM Client Version SCCM Collection Query (WQL)

The following is a set of SCCM 2012 queries that I use to get the SCCM client version for Systems without SP1, with SP1, and SP1 CU2.

SCCM Collection (Tested with 2012, SP1 & CU2)

Software inventory must ben enabled and running.  Instructions found here:
http://technet.microsoft.com/en-us/library/hh509028.aspx

Language: WQL

***SCCM Clients <5.00.7804.1000 (Pre SP1)

select
SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,
SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,
SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.ClientVersion < "5.00.7804.1000"


***SCCM Clients =5.00.7804.1000 (with SP1)

select
SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,
SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,
SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.ClientVersion = "5.00.7804.1000"

***SCCM Clients =5.00.7804.1300 (with SP1 CU2)
 select
SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,
SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,
SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.ClientVersion = "5.00.7804.1300"
 
 

Internet Explorer Version SCCM Collection Query (WQL)

The following is an SCCM 2012 query that I use to get the IE version in my environment.  This is freely available from Microsoft and other sites, but I have slightly modified them to get exactly what I need.

SCCM Collection (Tested with 2012, SP1 CU2)

Software inventory must ben enabled and running.  Instructions found here:
http://technet.microsoft.com/en-us/library/hh509028.aspx

Change the "6.%" to "7.%", "8.%" etc. to get the different versions.

Language: WQL


select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,
SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,
SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_SoftwareFile on SMS_G_System_SoftwareFile.ResourceID = SMS_R_System.ResourceId where SMS_G_System_SoftwareFile.FileName = "iexplore.exe" and SMS_G_System_SoftwareFile.FilePath like "%prog%internet%" and SMS_G_System_SoftwareFile.FileVersion like "6.%"