Could not find the policy in WMI for package/CreateMandatoryRequestRecu rsively failed

Hi,

I am trying to deploy a task sequence to a test machine to see if it works. All it is doing is uninstalling a windows update but it is not running. When I check the execmgr log I see the following:

![LOG[Policy is updated for Program: *, Package: USA002EB, Advert: USA2012D]LOG]!><time="13:37:45.453+240" date="05-18-2015" component="execmgr" context="" type="1" thread="2628" file="execreqmgr.cpp:7063">
<![LOG[Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="USA002EB",ProgramID="*", actionType 45l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30l]LOG]!><time="13:37:45.457+240" date="05-18-2015" component="execmgr" context="" type="1" thread="2628" file="event.cpp:405">
<![LOG[Mandatory execution requested for program * and advertisement USA2012D]LOG]!><time="13:37:46.294+240" date="05-18-2015" component="execmgr" context="" type="1" thread="404" file="execreqmgr.cpp:3527">
<![LOG[Creating mandatory request for advert USA2012D, program *, package USA002EB]LOG]!><time="13:37:46.294+240" date="05-18-2015" component="execmgr" context="" type="1" thread="404" file="execreqmgr.cpp:3653">
<![LOG[Could not find the policy in WMI for package USA002EB program *]LOG]!><time="13:37:46.345+240" date="05-18-2015" component="execmgr" context="" type="2" thread="404" file="softdistpolicy.cpp:2851">
<![LOG[CreateMandatoryRequestRecursively failed at FindUserOrSystemPolicy

I have already recreated the advertisement and redeployed but that still didn't help. Any ideas?         TIA        

May 18th, 2015 1:49pm

Is your device actually getting policy? Check the policy logs (policyagent.log, policyevaluator.log, policyagentprovider.log).

Also, confirm your client is in a boundary that has access to a distribution point.

In addition, what is the reason for using a task sequence for this? Could the same task be accomplished with a script?

Jeff

Free Windows Admin Tool Kit Click here and download it now
May 18th, 2015 2:23pm

What exactly is in your task sequence? I' m assuming a single task. Is it an Install Package task? If so, are directly referencing the Package (or Application) or are you using task sequence variables to reference the package and thus using the install multiple option within the task?
May 18th, 2015 3:01pm

From the logs it does seem it is successfully downloading the policy. All the task sequence does is uninstall an update using the command:

C:\Windows\System32\wusa.exe /uninstall /kb:2984972 /quiet /norestart

I have to do this for many machines so that is why I am using a task sequence. All the boundary settings are correct.

Free Windows Admin Tool Kit Click here and download it now
May 18th, 2015 3:18pm

All the task sequence does is uninstall an update using the command:

C:\Windows\System32\wusa.exe /uninstall /kb:2984972 /quiet /norestart

May 18th, 2015 3:18pm

Number of machines is not a requirement for using a task sequence. . .you could just as easily use a package/program for this. . .

What type of step did you use in your TS - a run command line step?

Jeff

Free Windows Admin Tool Kit Click here and download it now
May 18th, 2015 3:21pm

Yes just a command line which I got from this article:

https://weikingteh.wordpress.com/2013/05/13/how-to-rollback-remove-a-patch-using-sccm-configmgr/

May 18th, 2015 3:28pm

Why not use an empty package with a program having the above command-line (as Jeff mentions also)?

Technically, using a task sequence outside of OSD is unsupported.

Free Windows Admin Tool Kit Click here and download it now
May 18th, 2015 4:17pm

Okay maybe I will try that instead, I just was googling how to do this and that was what I found.
May 18th, 2015 4:23pm

Mistake #1: Using Google :-)
Free Windows Admin Tool Kit Click here and download it now
May 18th, 2015 6:38pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics