c4pp3r

OSD sequence. Software distribution policy not found. Error 80004004



8 posts in this topic

Hi guys

 

I'm at the end of my wits here. For some reason I just cannot install any Software Packages, regardless of type (straight from exe, cmd file, etc), and regardless of program.

 

I have tried recreating the packages from scratch, recreating my OSD task sequence from scratch, redistributing my Windows image, recreating it even, but nothing fixes my issue.

 

In the packages themselves, I have ticked the "Allow this program to be installed from the Install Package task sequence without being deployed". I even tried deploying the package to the "All Systems" group in case the prior setting was being ignore, but it still doesn't work. I even deployed it at the container my test system is in, and it still doesn't work.

 

All packages are set to run whether or not a user is logged on. The packages can deploy successfully when pushed out to running clients, it's only in an OSD task sequence that they fail.

 

Here is a grab from the smsts.log file.

 

]LOG]!><time="07:20:32.668-660" date="11-03-2012" component="InstallSoftware" context="" type="1" thread="2088" file="event.cpp:729">
<![LOG[successfully submitted event to the Status Agent.]LOG]!><time="07:20:32.761-660" date="11-03-2012" component="InstallSoftware" context="" type="0" thread="2088" file="event.cpp:747">
<![LOG[End TS policy evaluation]LOG]!><time="07:20:32.777-660" date="11-03-2012" component="InstallSoftware" context="" type="1" thread="2088" file="policyutil.cpp:10580">
<![LOG[Policy evaluation initiated]LOG]!><time="07:20:32.777-660" date="11-03-2012" component="InstallSoftware" context="" type="1" thread="2088" file="utils.cpp:3387">
<![LOG[Waiting for policy to be compiled in 'root\ccm\policy\machine' namespace ]LOG]!><time="07:20:32.777-660" date="11-03-2012" component="InstallSoftware" context="" type="1" thread="2088" file="installsoftware.cpp:370">
<![LOG[Query path = 'CCM_SoftwareDistribution.ADV_AdvertisementID="BUN2007B",PRG_ProgramID="Add WSUS cert to root store",PKG_PackageID="BUN0003B"']LOG]!><time="07:20:32.777-660" date="11-03-2012" component="InstallSoftware" context="" type="1" thread="2088" file="installsoftware.cpp:401">
<![LOG[Verified policy is compiled in 'root\ccm\policy\machine' namespace]LOG]!><time="07:20:32.777-660" date="11-03-2012" component="InstallSoftware" context="" type="1" thread="2088" file="installsoftware.cpp:426">
<![LOG[content location count = 1]LOG]!><time="07:20:32.808-660" date="11-03-2012" component="InstallSoftware" context="" type="1" thread="2088" file="installsoftware.cpp:231">
<![LOG[invoking Execution Manager to install software ]LOG]!><time="07:20:32.808-660" date="11-03-2012" component="InstallSoftware" context="" type="0" thread="2088" file="installsoftware.cpp:233">
<![LOG[FALSE, HRESULT=87d02004 (e:\nts_sccm_release\sms\client\osdeployment\installsoftware\installsoftware.cpp,251)]LOG]!><time="07:20:32.855-660" date="11-03-2012" component="InstallSoftware" context="" type="0" thread="2088" file="installsoftware.cpp:251">
<![LOG[Failed to invoke Execution Manager to Install Software for PackageID='BUN0003B' ProgramID='Add WSUS cert to root store' AdvertID='BUN2007B' hr=0x87d02004]LOG]!><time="07:20:32.855-660" date="11-03-2012" component="InstallSoftware" context="" type="3" thread="2088" file="installsoftware.cpp:251">
<![LOG[installSoftware failed, hr=0x87d02004]LOG]!><time="07:20:32.855-660" date="11-03-2012" component="InstallSoftware" context="" type="3" thread="2088" file="installsoftware.cpp:262">
<![LOG[0, HRESULT=87d02004 (e:\nts_sccm_release\sms\client\osdeployment\installsoftware\installsoftware.cpp,764)]LOG]!><time="07:20:32.855-660" date="11-03-2012" component="InstallSoftware" context="" type="0" thread="2088" file="installsoftware.cpp:764">
<![LOG[Entering ReleaseSource() for C:\_SMSTaskSequence\Packages\BUN0003B]LOG]!><time="07:20:32.855-660" date="11-03-2012" component="InstallSoftware" context="" type="1" thread="2088" file="resolvesource.cpp:3527">
<![LOG[reference count 1 for the source C:\_SMSTaskSequence\Packages\BUN0003B before releasing]LOG]!><time="07:20:32.855-660" date="11-03-2012" component="InstallSoftware" context="" type="1" thread="2088" file="resolvesource.cpp:3534">
<![LOG[Delete source directory C:\_SMSTaskSequence\Packages\BUN0003B]LOG]!><time="07:20:32.855-660" date="11-03-2012" component="InstallSoftware" context="" type="1" thread="2088" file="resolvesource.cpp:3557">
<![LOG[Released the resolved source C:\_SMSTaskSequence\Packages\BUN0003B]LOG]!><time="07:20:32.855-660" date="11-03-2012" component="InstallSoftware" context="" type="1" thread="2088" file="resolvesource.cpp:3567">
<![LOG[pInstall->Install(sPackageID, sProgramName), HRESULT=87d02004 (e:\nts_sccm_release\sms\client\osdeployment\installsoftware\main.cpp,361)]LOG]!><time="07:20:32.855-660" date="11-03-2012" component="InstallSoftware" context="" type="0" thread="2088" file="main.cpp:361">
<![LOG[install Software failed, hr=0x87d02004]LOG]!><time="07:20:32.855-660" date="11-03-2012" component="InstallSoftware" context="" type="3" thread="2088" file="main.cpp:361">
<![LOG[Process completed with exit code 2278563844]LOG]!><time="07:20:32.870-660" date="11-03-2012" component="TSManager" context="" type="1" thread="3904" file="commandline.cpp:1098">
<![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="07:20:32.870-660" date="11-03-2012" component="TSManager" context="" type="1" thread="3904" file="instruction.cxx:3011">
<![LOG[Failed to run the action: Install WSUS cert to root store.
The software distribution policy was not found. (Error: 87D02004; Source: CCM)]LOG]!><time="07:20:32.886-660" date="11-03-2012" component="TSManager" context="" type="3" thread="3904" file="instruction.cxx:3102">
<![LOG[MP server http://myserver.site.com.au. Ports 80,443. CRL=false.]LOG]!><time="07:20:32.886-660" date="11-03-2012" component="TSManager" context="" type="1" thread="3904" file="utils.cpp:4855">
<![LOG[setting authenticator]LOG]!><time="07:20:32.917-660" date="11-03-2012" component="TSManager" context="" type="1" thread="3904" file="utils.cpp:4877">
<![LOG[set authenticator in transport]LOG]!><time="07:20:32.917-660" date="11-03-2012" component="TSManager" context="" type="1" thread="3904" file="libsmsmessaging.cpp:7592">
<![LOG[sending StatusMessage]LOG]!><time="07:20:32.948-660" date="11-03-2012" component="TSManager" context="" type="1" thread="3904" file="libsmsmessaging.cpp:4020">
<![LOG[setting message signatures.]LOG]!><time="07:20:32.964-660" date="11-03-2012" component="TSManager" context="" type="0" thread="3904" file="libsmsmessaging.cpp:1292">
<![LOG[setting the authenticator.]LOG]!><time="07:20:32.964-660" date="11-03-2012" component="TSManager" context="" type="0" thread="3904" file="libsmsmessaging.cpp:1322">
<![LOG[CLibSMSMessageWinHttpTransport::Send: URL: myserver.site.com.au:80 CCM_POST /ccm_system/request]LOG]!><time="07:20:32.980-660" date="11-03-2012" component="TSManager" context="" type="1" thread="3904" file="libsmsmessaging.cpp:8422">
<![LOG[Request was succesful.]LOG]!><time="07:20:33.011-660" date="11-03-2012" component="TSManager" context="" type="0" thread="3904" file="libsmsmessaging.cpp:8758">
<![LOG[set a global environment variable _SMSTSLastActionRetCode=-2016403452]LOG]!><time="07:20:33.011-660" date="11-03-2012" component="TSManager" context="" type="0" thread="3904" file="executionenv.cxx:668">
<![LOG[set a global environment variable _SMSTSLastActionSucceeded=false]LOG]!><time="07:20:33.011-660" date="11-03-2012" component="TSManager" context="" type="0" thread="3904" file="executionenv.cxx:668">
<![LOG[Clear local default environment]LOG]!><time="07:20:33.011-660" date="11-03-2012" component="TSManager" context="" type="0" thread="3904" file="executionenv.cxx:807">
<![LOG[Let the parent group (Setup Operating System) decides whether to continue execution]LOG]!><time="07:20:33.042-660" date="11-03-2012" component="TSManager" context="" type="0" thread="3904" file="instruction.cxx:3211">
<![LOG[The execution of the group (Setup Operating System) has failed and the execution has been aborted. An action failed.
Operation aborted (Error: 80004004; Source: Windows)]LOG]!><time="07:20:33.058-660" date="11-03-2012" component="TSManager" context="" type="3" thread="3904" file="instruction.cxx:2425">
<![LOG[Failed to run the last action: Install WSUS cert to root store. Execution of task sequence failed.
The software distribution policy was not found. (Error: 87D02004; Source: CCM)]LOG]!><time="07:20:33.058-660" date="11-03-2012" component="TSManager" context="" type="3" thread="3904" file="engine.cxx:214">
<![LOG[MP server http://myserver.site.com.au. Ports 80,443. CRL=false.]LOG]!><time="07:20:33.058-660" date="11-03-2012" component="TSManager" context="" type="1" thread="3904" file="utils.cpp:4855">
<![LOG[setting authenticator]LOG]!><time="07:20:33.089-660" date="11-03-2012" component="TSManager" context="" type="1" thread="3904" file="utils.cpp:4877">
<![LOG[set authenticator in transport]LOG]!><time="07:20:33.089-660" date="11-03-2012" component="TSManager" context="" type="1" thread="3904" file="libsmsmessaging.cpp:7592">
<![LOG[sending StatusMessage]LOG]!><time="07:20:33.104-660" date="11-03-2012" component="TSManager" context="" type="1" thread="3904" file="libsmsmessaging.cpp:4020">
<![LOG[setting message signatures.]LOG]!><time="07:20:33.120-660" date="11-03-2012" component="TSManager" context="" type="0" thread="3904" file="libsmsmessaging.cpp:1292">
<![LOG[setting the authenticator.]LOG]!><time="07:20:33.120-660" date="11-03-2012" component="TSManager" context="" type="0" thread="3904" file="libsmsmessaging.cpp:1322">
<![LOG[CLibSMSMessageWinHttpTransport::Send: URL: myserver.site.com.au:80 CCM_POST /ccm_system/request]LOG]!><time="07:20:33.120-660" date="11-03-2012" component="TSManager" context="" type="1" thread="3904" file="libsmsmessaging.cpp:8422">
<![LOG[Request was succesful.]LOG]!><time="07:20:33.136-660" date="11-03-2012" component="TSManager" context="" type="0" thread="3904" file="libsmsmessaging.cpp:8758">
<![LOG[Launching command shell.]LOG]!><time="07:21:25.786-660" date="11-03-2012" component="OSDSetupHook" context="" type="1" thread="824" file="debugwindow.cpp:202">
<![LOG[executing command: C:\WINDOWS\system32\cmd.exe /k]LOG]!><time="07:21:25.786-660" date="11-03-2012" component="OSDSetupHook" context="" type="1" thread="824" file="debugwindow.cpp:63">
<![LOG[executed command: C:\WINDOWS\system32\cmd.exe /k]LOG]!><time="07:21:25.817-660" date="11-03-2012" component="OSDSetupHook" context="" type="1" thread="824" file="debugwindow.cpp:80">
<![LOG[Execution::enExecutionFail != m_eExecutionResult, HRESULT=80004005 (e:\nts_sccm_release\sms\client\tasksequence\tsmanager\tsmanager.cpp,756)]LOG]!><time="07:35:45.768-660" date="11-03-2012" component="TSManager" context="" type="0" thread="3904" file="tsmanager.cpp:756">
<![LOG[Task Sequence Engine failed! Code: enExecutionFail]LOG]!><time="07:35:45.768-660" date="11-03-2012" component="TSManager" context="" type="3" thread="3904" file="tsmanager.cpp:756">
<![LOG[****************************************************************************]LOG]!><time="07:35:45.768-660" date="11-03-2012" component="TSManager" context="" type="1" thread="3904" file="tsmanager.cpp:779">
<![LOG[Task sequence execution failed with error code 80004005]LOG]!><time="07:35:45.768-660" date="11-03-2012" component="TSManager" context="" type="3" thread="3904" file="tsmanager.cpp:780">

 

I've tried searching for error 87d02004, but Google gives me nothing of use.

 

Here is my execmgr log:

<![LOG[software Distribution site settings (CCM_SoftwareDistributionClientConfig) policy does not yet exist on the client.
If the client is not yet registered, this is expected behavior.]LOG]!><time="07:49:31.848-660" date="10-31-2012" component="execmgr" context="" type="2" thread="3904" file="softdistpolicy.cpp:1398">
<![LOG[software distribution agent was enabled]LOG]!><time="07:49:49.227-660" date="10-31-2012" component="execmgr" context="" type="1" thread="3556" file="execreqmgr.cpp:6665">
<![LOG[A user has logged on.]LOG]!><time="08:24:25.218-660" date="10-31-2012" component="execmgr" context="" type="1" thread="572" file="execreqmgr.cpp:4893">
<![LOG[The logged on user is MININT-MU0CRRN\Administrator]LOG]!><time="08:24:25.327-660" date="10-31-2012" component="execmgr" context="" type="1" thread="572" file="execreqmgr.cpp:4911">
<![LOG[Policy arrived for child program Add WSUS cert to root store]LOG]!><time="07:20:32.808-660" date="11-03-2012" component="execmgr" context="" type="1" thread="280" file="execreqmgr.cpp:6847">
<![LOG[Creating mandatory request for advert BUN2007B, program Add WSUS cert to root store, package BUN0003B]LOG]!><time="07:20:32.824-660" date="11-03-2012" component="execmgr" context="" type="1" thread="3936" file="execreqmgr.cpp:3658">
<![LOG[Could not find the policy in WMI for package BUN0003B program Add WSUS cert to root store]LOG]!><time="07:20:32.839-660" date="11-03-2012" component="execmgr" context="" type="2" thread="3936" file="softdistpolicy.cpp:2829">
<![LOG[CreateMandatoryRequestRecursively failed at FindUserOrSystemPolicy Add WSUS cert to root store]LOG]!><time="07:20:32.839-660" date="11-03-2012" component="execmgr" context="" type="2" thread="3936" file="execreqmgr.cpp:3675">
<![LOG[Policy deleted for advertisement BUN2007B package BUN0003B program Add WSUS cert to root store]LOG]!><time="07:35:47.266-660" date="11-03-2012" component="execmgr" context="" type="1" thread="868" file="execreqmgr.cpp:6941">
<![LOG[Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="BUN0003B",ProgramID="Add WSUS cert to root store", actionType 45l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30l]LOG]!><time="07:35:47.266-660" date="11-03-2012" component="execmgr" context="" type="1" thread="868" file="event.cpp:410">
<![LOG[software Distribution site settings (CCM_SoftwareDistributionClientConfig) policy does not yet exist on the client.
If the client is not yet registered, this is expected behavior.]LOG]!><time="07:35:48.904-660" date="11-03-2012" component="execmgr" context="" type="2" thread="3344" file="softdistpolicy.cpp:1398">
<![LOG[software distribution agent was disabled]LOG]!><time="07:35:48.904-660" date="11-03-2012" component="execmgr" context="" type="1" thread="3344" file="execreqmgr.cpp:6576">
<![LOG[ReleaseRequest - no request found in either the pending or the completed queue]LOG]!><time="07:35:48.904-660" date="11-03-2012" component="execmgr" context="" type="3" thread="3432" file="execreqmgr.cpp:8613">
<![LOG[softdist is still trying to delete the corresponding task from MTC]LOG]!><time="07:35:48.904-660" date="11-03-2012" component="execmgr" context="" type="1" thread="3432" file="execreqmgr.cpp:8615">
<![LOG[MTC task with id: {960C9B0D-2D8D-4526-990B-1F8A44F3ACF0} deleted successfully.]LOG]!><time="07:35:48.904-660" date="11-03-2012" component="execmgr" context="" type="1" thread="3432" file="execreqmgr.cpp:8625">

 

I notice there is this line "<![LOG[Could not find the policy in WMI for package BUN0003B program Add WSUS cert to root store]LOG]!><time="07:20:32.839-660" date="11-03-2012" component="execmgr" context="" type="2" thread="3936" file="softdistpolicy.cpp:2829">" could this be it? What does it mean?

 

Please help!

1 person likes this

Share this post


Link to post
Share on other sites


Hi c4pp3r - did you have any luck resolving this?

 

I'm having the exact same issue. No problems deploying applications to live clients, but freezes in a TS.

 

Thanks,

Gary

Share this post


Link to post
Share on other sites

Did you solved your problem?

 

I have the same problem:

Task sequence are running fine except Package/Programms instalations

All application packages are instaled without any problem.

 

Rukicc

Share this post


Link to post
Share on other sites

Same problem here. Originally it was working and then all of a sudden... every USB I create now does not work.

I have just changed all the packages to Applications. Another option is to use Run Command Line for the packages.

Share this post


Link to post
Share on other sites

Found this online (Experts exchange), not sure if it's any help?

 

by: mnat1201Posted on 2011-05-04 at 09:39:06ID: 35691471

I believe I resolved my own issue. The problem stems from an issue with using dependent programs during the Task Sequence Install--it doesn't like them.

So rather than calling a program that calls a dependent program that calls a dependent program (which works fine through Run Advertised Programs or a Mandatory assignment in SCCM), I created three separate "Installs" in the Task Sequence, and unchained the dependencies. Once each program was set to run independently, the Task Sequence not only stopped producing these errors, it installed Flash with no problem.

The three programs I had chained together were Adobe Flash Player, Adobe Flash Player AX and a VBS script to copy the MMS.CFG file to disable auto updates. Again, after breaking these up into 3 separate programs in the task sequence, rather than calling one program and having it dependent on the other two, the task sequence worked. I sure hope this is documented somewhere by Microsoft, but I haven't seen it yet.

Share this post


Link to post
Share on other sites

Long time no post, but The error seemed to go away, but now it's reared its ugly head again.

 

The problem is random and will occur on random packages. It will occur on a computer, then if you restart the OSD, it may work the next time around. There is no rhyme or reason to it that I can detect. I'm trying to detect if external factors (backups, client hardware issues, etc) may be causing the issue. Hopefully I'll find something solid.

 

Edenost I don't believe the Experts Exchange post is the sole reason, as the packages it fails on for me range from simple one dependent packages to more complex ones. And again, these will work on most of the systems.

 

Note: I'm running 5.0.7958.1000

Share this post


Link to post
Share on other sites

Update: I installed the hotfix from KB2905002 and I was able to image 40 PCs in one hit with no failure.

 

I'll be doing another 60 odd today, so we'll see what happens, but so far so good.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now