SOLVED

Task sequence run from software center fails error 0x80041002

%3CLINGO-SUB%20id%3D%22lingo-sub-326108%22%20slang%3D%22en-US%22%3ETask%20sequence%20run%20from%20software%20center%20fails%20error%200x80041002%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-326108%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3EI'm%20trying%20to%20run%20a%20task%20sequence%20from%20software%20center.%20In%20this%20case%20it%20is%20for%20reinstalling%20the%20operating%20system.%3C%2FP%3E%3CP%3EWhen%20the%20TS%20is%20required%2C%20it%20will%20get%20the%20policy%20and%20after%205%20minutes%20will%20start%20running%20the%20deployment%20(never%20thought%20this%20was%20an%20issue...).%20But%20when%20the%20TS%20is%20available%20it%20will%20report%20the%20error%20in%20the%20subject.%3C%2FP%3E%3CP%3EFrom%20googling%20the%20issue%20I%20found%20out%20that%20the%20log%20to%20check%20is%20execmgr.%20What%20I%20found%20there%20was%20that%20all%20my%20applications%20and%20packages%20get%20the%20warning%20%22could%20not%20find%20the%20policy%20in%20WMI...%22%20and%20I%20can't%20understand%20why...%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20am%20I%20doing%20wrong%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-326108%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ECM%20current%20branch%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOperating%20System%20Deployment%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-326317%22%20slang%3D%22en-US%22%3ERe%3A%20Task%20sequence%20run%20from%20software%20center%20fails%20error%200x80041002%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-326317%22%20slang%3D%22en-US%22%3E%3CP%3EFeeling%20really%20stupid%2C%20forgot%20about%20the%20checkbox...%3C%2FP%3E%3CP%3EThanks%20a%20lot!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-326314%22%20slang%3D%22en-US%22%3ERe%3A%20Task%20sequence%20run%20from%20software%20center%20fails%20error%200x80041002%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-326314%22%20slang%3D%22en-US%22%3EGood%20question.%20Yes%2C%20either%20the%20applications%20and%20programs%20referenced%20in%20your%20task%20sequence%20must%20be%20deployed%20as%20available%20to%20a%20collection%20targeting%20the%20client%2C%20or%20you%20must%20enable%20the%20%E2%80%9CAllow%20this%20application%20to%20be%20installed%20from%20the%20Install%20Application%20task%20sequence%20action%20without%20being%20deployed%E2%80%9D%20checkbox%20on%20the%20Application%20or%20Program%20properties.%20(Screenshots%20of%20that%20setting%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Fblogs.technet.microsoft.com%2Fbrandonlinton%2F2014%2F01%2F30%2Fenable-programs-and-applications-to-be-installed-from-a-task-sequence-without-being-deployed%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fblogs.technet.microsoft.com%2Fbrandonlinton%2F2014%2F01%2F30%2Fenable-programs-and-applications-to-be-installed-from-a-task-sequence-without-being-deployed%2F%3C%2FA%3E)%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-326286%22%20slang%3D%22en-US%22%3ERe%3A%20Task%20sequence%20run%20from%20software%20center%20fails%20error%200x80041002%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-326286%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20was%20on%20a%20fresh%20VM.%20Do%20I%20need%20to%20deploy%20all%20the%20packages%20and%20applications%20to%20the%20collection%20where%20I%20want%20to%20run%20the%20TS%20so%20it%20will%20have%20a%20policy%20for%20it%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-326284%22%20slang%3D%22en-US%22%3ERe%3A%20Task%20sequence%20run%20from%20software%20center%20fails%20error%200x80041002%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-326284%22%20slang%3D%22en-US%22%3EWhat%20you%20are%20doing%20should%20work%20fine%2C%20but%20it%20sounds%20like%20there%20is%20an%20issue%20with%20either%20the%20SCCM%20client%20or%20the%20WMI%20repository%20on%20your%20test%20VM.%20You%20could%20try%20removing%20and%20re-installing%20the%20client%2C%20or%20try%20again%20with%20a%20fresh%20VM.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-326282%22%20slang%3D%22en-US%22%3ERe%3A%20Task%20sequence%20run%20from%20software%20center%20fails%20error%200x80041002%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-326282%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20doing%20this%20on%20a%20test%20VM.%20My%20problem%20is%20that%20if%20I%20change%20this%20to%20required%20it%20will%20work...%20albeit%20after%2010%20minutes%20with%20some%20alerts%20I've%20mentioned%20in%20my%20question%20but%20it%20will%20work...%3C%2FP%3E%3CP%3EWhat%20I'm%20trying%20to%20achieve%20is%20a%20way%20to%20reinstall%20an%20OS%20on%20demand%20when%20I%20need%20it.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-326281%22%20slang%3D%22en-US%22%3ERe%3A%20Task%20sequence%20run%20from%20software%20center%20fails%20error%200x80041002%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-326281%22%20slang%3D%22en-US%22%3EHow%20many%20different%20computers%20are%20you%20seeing%20this%20issue%20on%3F%20Error%200x80041002%20may%20indicate%20that%20the%20WMI%20repository%20on%20this%20particular%20computer%20is%20corrupt.%20Since%20it%20sounds%20like%20you%20are%20reinstalling%20the%20operating%20system%2C%20perhaps%20you%20would%20be%20better%20off%20launching%20this%20task%20sequence%20from%20PXE%20or%20bootable%20media%20rather%20than%20trying%20to%20repair%20WMI.%3C%2FLINGO-BODY%3E
Frequent Contributor

Hi all,

I'm trying to run a task sequence from software center. In this case it is for reinstalling the operating system.

When the TS is required, it will get the policy and after 5 minutes will start running the deployment (never thought this was an issue...). But when the TS is available it will report the error in the subject.

From googling the issue I found out that the log to check is execmgr. What I found there was that all my applications and packages get the warning "could not find the policy in WMI..." and I can't understand why... 

What am I doing wrong?

6 Replies
How many different computers are you seeing this issue on? Error 0x80041002 may indicate that the WMI repository on this particular computer is corrupt. Since it sounds like you are reinstalling the operating system, perhaps you would be better off launching this task sequence from PXE or bootable media rather than trying to repair WMI.

I'm doing this on a test VM. My problem is that if I change this to required it will work... albeit after 10 minutes with some alerts I've mentioned in my question but it will work...

What I'm trying to achieve is a way to reinstall an OS on demand when I need it.

What you are doing should work fine, but it sounds like there is an issue with either the SCCM client or the WMI repository on your test VM. You could try removing and re-installing the client, or try again with a fresh VM.

This was on a fresh VM. Do I need to deploy all the packages and applications to the collection where I want to run the TS so it will have a policy for it?

Best Response confirmed by RahamimL (Frequent Contributor)
Solution
Good question. Yes, either the applications and programs referenced in your task sequence must be deployed as available to a collection targeting the client, or you must enable the “Allow this application to be installed from the Install Application task sequence action without being deployed” checkbox on the Application or Program properties. (Screenshots of that setting here: https://blogs.technet.microsoft.com/brandonlinton/2014/01/30/enable-programs-and-applications-to-be-...)

Feeling really stupid, forgot about the checkbox...

Thanks a lot!