We are on SCCM 2012 R2 CU1 on Server 2012 R2 Standard
My task sequence is suddenly failing on software installations - I made a copy of our production task sequence and updated some of the software packages to newer versions, including the OS image (we use a thin image). I have tried changing the order of installation and the packages to known working packages from the production task sequence, but they keep failing. It appears that the installation downloads to the local drive, but then fails when The software distribution policy was not found. (Error: 87D02004; Source: CCM) Here is an excerpt from the smsts.log:
Start executing an instruction. Instruction name: Shockwave Player. Instruction pointer: 202 TSManager 8/12/2015 3:46:33 PM 1672 (0x0688)
Set a global environment variable _SMSTSCurrentActionName=Shockwave Player TSManager 8/12/2015 3:46:33 PM 1672 (0x0688)
Set a global environment variable _SMSTSNextInstructionPointer=202 TSManager 8/12/2015 3:46:33 PM 1672 (0x0688)
Set a local default variable _SMSSWDProgramName TSManager 8/12/2015 3:46:33 PM 1672 (0x0688)
Set a global environment variable _SMSTSLogPath=C:\WINDOWS\CCM\Logs\SMSTSLog TSManager 8/12/2015 3:46:33 PM 1672 (0x0688)
Expand a string: smsswd.exe /pkg:MG10017D /install /basevar: /continueOnError: TSManager 8/12/2015 3:46:33 PM 1672 (0x0688)
Expand a string: TSManager 8/12/2015 3:46:33 PM 1672 (0x0688)
Command line for extension .exe is "%1" %* TSManager 8/12/2015 3:46:33 PM 1672 (0x0688)
Set command line: smsswd.exe /pkg:MG10017D /install /basevar: /continueOnError: TSManager 8/12/2015 3:46:33 PM 1672 (0x0688)
Start executing the command line: smsswd.exe /pkg:MG10017D /install /basevar: /continueOnError: TSManager 8/12/2015 3:46:33 PM 1672 (0x0688)
!--------------------------------------------------------------------------------------------! TSManager 8/12/2015 3:46:33 PM 1672 (0x0688)
Expand a string: FullOS TSManager 8/12/2015 3:46:33 PM 1672 (0x0688)
Executing command line: smsswd.exe /pkg:MG10017D /install /basevar: /continueOnError: TSManager 8/12/2015 3:46:33 PM 1672 (0x0688)
[ smsswd.exe ] InstallSoftware 8/12/2015 3:46:33 PM 2720 (0x0AA0)
PackageID = 'MG10017D' InstallSoftware 8/12/2015 3:46:33 PM 2720 (0x0AA0)
BaseVar = '', ContinueOnError='' InstallSoftware 8/12/2015 3:46:33 PM 2720 (0x0AA0)
ProgramName = 'Adobe Shockwave Player 12.1.9.159' InstallSoftware 8/12/2015 3:46:33 PM 2720 (0x0AA0)
SwdAction = '0002' InstallSoftware 8/12/2015 3:46:33 PM 2720 (0x0AA0)
GetExecRequestMgrInterface successful InstallSoftware 8/12/2015 3:46:33 PM 2720 (0x0AA0)
Retrieving value from TSEnv for '_SMSTSPolicyMG10017D_Adobe Shockwave Player 12.1.9.159' InstallSoftware 8/12/2015 3:46:33 PM 2720 (0x0AA0)
::DecompressBuffer(65536) InstallSoftware 8/12/2015 3:46:33 PM 2720 (0x0AA0)
Decompression (zlib) succeeded: original size 3082, uncompressed size 39596. InstallSoftware 8/12/2015 3:46:33 PM 2720 (0x0AA0)
ADV_AdvertisementID=MG1202A4 InstallSoftware 8/12/2015 3:46:33 PM 2720 (0x0AA0)
PKG_PSF_ContainsSourceFiles=TRUE InstallSoftware 8/12/2015 3:46:33 PM 2720 (0x0AA0)
ResolveSource flags: 0x00000000 InstallSoftware 8/12/2015 3:46:33 PM 2720 (0x0AA0)
SMSTSPersistContent: . The content for package MG10017D will be persisted InstallSoftware 8/12/2015 3:46:33 PM 2720 (0x0AA0)
DownloadOnDemand flag is true. Attempting to download content locally for Package MG10017D. InstallSoftware 8/12/2015 3:46:33 PM 2720 (0x0AA0)
Locations: Multicast = 0, HTTP = 1, SMB = 1. InstallSoftware 8/12/2015 3:46:33 PM 2720 (0x0AA0)
Package Flags: 0x01000080 InstallSoftware 8/12/2015 3:46:33 PM 2720 (0x0AA0)
Multicast is not enabled for the package. InstallSoftware 8/12/2015 3:46:33 PM 2720 (0x0AA0)
Trying http://RDCSCCMDP.mwllp.dom/SMS_DP_SMSPKG$/MG10017D. InstallSoftware 8/12/2015 3:46:33 PM 2720 (0x0AA0)
GetDirectoryListing() entered InstallSoftware 8/12/2015 3:46:33 PM 2720 (0x0AA0)
Initializing HTTP transport. InstallSoftware 8/12/2015 3:46:33 PM 2720 (0x0AA0)
Setting URL = http://RDCSCCMDP.mwllp.dom/SMS_DP_SMSPKG$/MG10017D. InstallSoftware 8/12/2015 3:46:33 PM 2720 (0x0AA0)
Address=http://RDCSCCMDP.mwllp.dom, Scheme=http, Object=/SMS_DP_SMSPKG$/MG10017D, Port=80. InstallSoftware 8/12/2015 3:46:33 PM 2720 (0x0AA0)
Setting Authenticator. InstallSoftware 8/12/2015 3:46:33 PM 2720 (0x0AA0)
Set authenticator in transport InstallSoftware 8/12/2015 3:46:33 PM 2720 (0x0AA0)
WinHttp credentials set InstallSoftware 8/12/2015 3:46:33 PM 2720 (0x0AA0)
CLibSMSMessageWinHttpTransport::Send: URL: RDCSCCMDP.mwllp.dom:80 PROPFIND /SMS_DP_SMSPKG$/MG10017D InstallSoftware 8/12/2015 3:46:33 PM 2720 (0x0AA0)
Request was successful. InstallSoftware 8/12/2015 3:46:34 PM 2720 (0x0AA0)
<![LOG[DAV response string is:
<?xml version="1.0" encoding="utf-8" ?><D:multistatus xmlns:D="DAV:"><D:response><D:href>http://RDCSCCMDP.mwllp.dom/SMS_DP_SMSPKG$/sccm?/MG10017D/</D:href><D:propstat><D:status>HTTP/1.1
200 OK</D:status><D:prop><D:getcontenttype/><D:supportedlock/><D:getetag/><D:creationdate/><D:iscollection>1</D:iscollection><D:resourcetype><D:collection/></D:resourcetype><D:ishidden>0</D:ishidden><D:displayname>http://RDCSCCMDP.mwllp.dom/SMS_DP_SMSPKG$/sccm?/MG10017D/</D:displayname><D:getlastmodified></D:getlastmodified><D:getcontentlanguage/><D:getcontentlength>0</D:getcontentlength></D:prop></D:propstat></D:response><D:response><D:href>http://RDCSCCMDP.mwllp.dom/SMS_DP_SMSPKG$/MG10017D/sccm?/AppDeployToolkit</D:href><D:propstat><D:status>HTTP/1.1
200
......
File:
http://RDCSCCMDP.mwllp.dom:80/SMS_DP_SMSPKG$/MG10017D/sccm?/SupportFiles/mms.cfg InstallSoftware 8/12/2015 3:46:34 PM 2720 (0x0AA0)
GetDirectoryListing() successfully completed InstallSoftware 8/12/2015 3:46:34 PM 2720 (0x0AA0)
Creating folder: C:\_SMSTaskSequence\Packages\MG10017D\AppDeployToolkit InstallSoftware 8/12/2015 3:46:34 PM 2720 (0x0AA0)
Creating folder: C:\_SMSTaskSequence\Packages\MG10017D\Files InstallSoftware 8/12/2015 3:46:34 PM 2720 (0x0AA0)
Creating folder: C:\_SMSTaskSequence\Packages\MG10017D\SupportFiles InstallSoftware 8/12/2015 3:46:34 PM 2720 (0x0AA0)
Succeeded loading resource DLL 'C:\WINDOWS\CCM\1033\TSRES.DLL' InstallSoftware 8/12/2015 3:46:34 PM 2720 (0x0AA0)
Downloading file /SMS_DP_SMSPKG$/MG10017D/sccm?/AppDeployToolkit/AppDeployToolkitBanner.png range 0-10495 InstallSoftware 8/12/2015 3:46:34 PM 2720 (0x0AA0)
Downloaded file from
http://RDCSCCMDP.mwllp.dom:80/SMS_DP_SMSPKG$/MG10017D/sccm?/AppDeployToolkit/AppDeployToolkitBanner.png to C:\_SMSTaskSequence\Packages\MG10017D\AppDeployToolkit/AppDeployToolkitBanner.png InstallSoftware 8/12/2015 3:46:34 PM 2720 (0x0AA0)
....
VerifyContentHash: Hash algorithm is 32780 InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
c:\_smstasksequence\packages\mg10017d\appdeploytoolkit is a directory. Setting directory security InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
c:\_smstasksequence\packages\mg10017d\files is a directory. Setting directory security InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
c:\_smstasksequence\packages\mg10017d\supportfiles is a directory. Setting directory security InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Content successfully downloaded at C:\_SMSTaskSequence\Packages\MG10017D. InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
SMS PkgID 'MG10017D' resolved to location 'C:\_SMSTaskSequence\Packages\MG10017D' InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Start to compile TS policy InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Policy complied successfully in WMI 'root\ccm\policy\defaultmachine\requestedconfig' namespace InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
End TS policy compilation InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
getPointer()->ExecQuery( BString(L"WQL"), BString(pszQuery), lFlags, pContext, ppEnum ), HRESULT=80041017 (e:\nts_sccm_release\sms\framework\core\ccmcore\wminamespace.cpp,463) InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Failed to query CCM_SoftwareDistribution InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Get Install Directory for SMS Client InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Start to evaluate TS policy with lock InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Locked policy transaction lock successfully InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Updating settings in \\.\root\ccm\policy\machine\actualconfig InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
RequestedConfig policy instance(s) : 437 InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Locked \\.\ROOT\ccm\policy\machine\RequestedConfig for source SMS:Client:Default:{8864FB91-94EE-4F16-A144-0D82A232049D} successfully InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Namespace: \\.\ROOT\ccm\policy\machine\RequestedConfig, Query: SELECT PolicyID FROM CCM_Policy_Policy5 WHERE (PolicySource = "SMS:Client:Default:{8864FB91-94EE-4F16-A144-0D82A232049D}")
AND (PolicyState = "Active") AND (PolicyType = "Machine") InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
There is no ccm_policy_policy instance, skipping addition to realinst map InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Unlocked \\.\ROOT\ccm\policy\machine\RequestedConfig for source SMS:Client:Default:{8864FB91-94EE-4F16-A144-0D82A232049D} successfully InstallSoftware 8/12/2015 3:46:37 PM 2720
(0x0AA0)
RequestedConfig policy instance(s) : 0 InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Locked \\.\ROOT\ccm\policy\machine\RequestedConfig for source SMS:MG1 successfully InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Namespace: \\.\ROOT\ccm\policy\machine\RequestedConfig, Query: SELECT PolicyID FROM CCM_Policy_Policy5 WHERE (PolicySource = "SMS:MG1") AND (PolicyState = "Active") AND (PolicyType
= "Machine") InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
There is no ccm_policy_policy instance, skipping addition to realinst map InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Unlocked \\.\ROOT\ccm\policy\machine\RequestedConfig for source SMS:MG1 successfully InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
RequestedConfig policy instance(s) : 0 InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Locked \\.\ROOT\ccm\policy\machine\RequestedConfig for source CcmPortal successfully InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Namespace: \\.\ROOT\ccm\policy\machine\RequestedConfig, Query: SELECT PolicyID FROM CCM_Policy_Policy5 WHERE (PolicySource = "CcmPortal") AND (PolicyState = "Active") AND (PolicyType
= "Machine") InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
There is no ccm_policy_policy instance, skipping addition to realinst map InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Unlocked \\.\ROOT\ccm\policy\machine\RequestedConfig for source CcmPortal successfully InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
RequestedConfig policy instance(s) : 0 InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Locked \\.\ROOT\ccm\policy\machine\RequestedConfig for source Local successfully InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
RequestedConfig policy instance(s) : 9 InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Unlocked \\.\ROOT\ccm\policy\machine\RequestedConfig for source Local successfully InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
RequestedConfig policy instance(s) : 13 InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Locked \\.\ROOT\ccm\policy\machine\RequestedConfig for source CcmTaskSequence successfully InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Namespace: \\.\ROOT\ccm\policy\machine\RequestedConfig, Query: SELECT PolicyID FROM CCM_Policy_Policy5 WHERE (PolicySource = "CcmTaskSequence") AND (PolicyState = "Active")
AND (PolicyType = "Machine") InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
There is no ccm_policy_policy instance, skipping addition to realinst map InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Unlocked \\.\ROOT\ccm\policy\machine\RequestedConfig for source CcmTaskSequence successfully InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Total RequestedConfig policy instance(s) : 459 InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Locked ActualConfig successfully InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
New/Changed ActualConfig policy instance(s) : 1 InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
[1] Added/updated setting 'ccm_softwaredistribution:adv_advertisementid=mg1202a4:pkg_packageid=mg10017d:prg_programid=adobe shockwave player 12.1.9.159'. InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Unlocked ActualConfig successfully InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Unlocked policy transaction lock successfully InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Raising event:
instance of CCM_PolicyAgent_SettingsEvaluationComplete
{
ClientID = "GUID:172B528A-82EC-497A-B666-BC7035981F13";
DateTime = "20150812194637.927000+000";
PolicyNamespace = "\\\\.\\root\\ccm\\policy\\machine\\actualconfig";
ProcessID = 2716;
ThreadID = 2720;
};
InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Successfully submitted event to the Status Agent. InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
End TS policy evaluation InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Policy evaluation initiated InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Waiting for policy to be compiled in 'root\ccm\policy\machine' namespace InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Query path = 'CCM_SoftwareDistribution.ADV_AdvertisementID="MG1202A4",PRG_ProgramID="Adobe Shockwave Player 12.1.9.159",PKG_PackageID="MG10017D"' InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Verified policy is compiled in 'root\ccm\policy\machine' namespace InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
content location count = 1 InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Checking if the active request handle: {6EBB07FE-D5EA-4312-964D-41BD95100F7B} is valid. InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
CoCreateInstance succeeded InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Active request handle: {6EBB07FE-D5EA-4312-964D-41BD95100F7B} is valid. InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Invoking Execution Manager to install software InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
FALSE, HRESULT=87d02004 (e:\nts_sccm_release\sms\client\osdeployment\installsoftware\installsoftware.cpp,264) InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Failed to invoke Execution Manager to Install Software for PackageID='MG10017D' ProgramID='Adobe Shockwave Player 12.1.9.159' AdvertID='MG1202A4' hr=0x87d02004 InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
InstallSoftware failed, hr=0x87d02004 InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
0, HRESULT=87d02004 (e:\nts_sccm_release\sms\client\osdeployment\installsoftware\installsoftware.cpp,780) InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
ReleaseSource() for C:\_SMSTaskSequence\Packages\MG10017D. InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
reference count 1 for the source C:\_SMSTaskSequence\Packages\MG10017D before releasing InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Released the resolved source C:\_SMSTaskSequence\Packages\MG10017D InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
pInstall->Install(sPackageID, sProgramName), HRESULT=87d02004 (e:\nts_sccm_release\sms\client\osdeployment\installsoftware\main.cpp,361) InstallSoftware 8/12/2015 3:46:37 PM 2720 (0x0AA0)
Install Software failed, hr=0x87d02004 InstallSoftware 8/12/2015 3:46:38 PM 2720 (0x0AA0)
Process completed with exit code 2278563844 TSManager 8/12/2015 3:46:38 PM 1672 (0x0688)
The package works fine as a deployment to existing machines and the task sequence worked to install the wim file and the drivers. The same problem happens with the 2nd package in line if I set this one to continue if failed.
As an aside, we also had an issue adding a task to run Software Updates on a copy of our production task sequence - that would also just run then restart and the task sequence would never continue, leaving the machine in a provisioning state.
- no development environment to test updating to SP1 or other cu unfortunately!
thanks for any in