Identify Superseded Applications blocking the TaskSequence from starting in FullOS

%3CLINGO-SUB%20id%3D%22lingo-sub-339019%22%20slang%3D%22en-US%22%3EIdentify%20Superseded%20Applications%20blocking%20the%20TaskSequence%20from%20starting%20in%20FullOS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-339019%22%20slang%3D%22en-US%22%3E%3CP%3ERecently%2C%20one%20of%20my%20customers%20was%20adopting%20their%20Bare%20Metal%20Win10%20TaskSequence%20to%20also%20support%20starting%20the%20TaskSequence%20from%20FullOS.%3C%2FP%3E%3CP%3ESo%2C%20easy%20as%20that...adding%20some%20steps%20to%20restart%20in%20WinPE%20etc.%20and%20give%20it%20a%20try.%20But%20surprise%20%E2%80%93%20the%20same%20TaskSequence%20running%20fine%20from%20WinPE%20is%20telling%20that%20there%20are%20some%20Applications%20missing%20on%20the%20DP%20when%20started%20from%20FullOS!%3F%3C%2FP%3E%3CP%3EHmm%2C%20that%20sounds%20quite%20strange%20so%20let%E2%80%99s%20look%20in%20the%20cas.log%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F75062iD45C5CC8C7D0E50F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%221.jpg%22%20title%3D%221.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ESo%2C%20we%20can%20see%20the%20content%20with%20the%20ID%20Content_46562d77-698f-4c85-972a-ea7d340bb6f9.1%20is%20getting%20requested%20but%20not%20found%20on%20any%20matching%20DPs.%20But%20what%E2%80%99s%20behind%20this%20content%20Id%20%3Asmiling_face_with_smiling_eyes%3A%3C%2FP%3E%3CP%3ETo%20find%20out%20I%20started%20the%20sql%20management%20studio%20an%20ran%20the%20following%20query%20to%20get%20the%20scopeId%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20890px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F75063iCBBD3E861E9BFAA4%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%222.jpg%22%20title%3D%222.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ENow%20we%E2%80%99re%20able%20to%20get%20some%20more%20info%20about%20our%20missing%20link%20by%20running%20another%20query%20using%20the%20returned%20ScopeId%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F75065i1772FE5F4A981532%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%223.jpg%22%20title%3D%223.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EBy%20clicking%20on%20the%20SDMPackageDigest%20link%20we%20can%20identify%20the%20Application%20behind.%20So%2C%20in%20this%20case%20an%20old%20Lexmark%20Software%20which%20wasn%E2%80%99t%20referenced%20in%20our%20TaskSequence%20and%20not%20distributed%20anymore.%20However%2C%20a%20newer%20Version%20of%20the%20App%20superseding%20the%20old%20one%20was%20referenced%20in%20the%20TaskSequence.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F75064i1EC3FF8683E6710B%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%224.jpg%22%20title%3D%224.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20be%20aware%20that%20when%20starting%20a%20TaskSequence%20from%20FullOS%20not%20only%20all%20direct%20Apps%20referenced%20in%20the%20TaskSequence%20are%20checked%20if%20available%20on%20any%20DP%20(which%20is%20super%20easy%20to%20check%20in%20the%20console)%20but%20also%20all%20the%20superseded%20Apps%20%E2%80%93%20which%20does%20makes%20sense%20by%20the%20way.%3C%2FP%3E%3CP%3ENow%20as%20we%20know%20about%20the%20reason%2C%20we%20can%20take%20action%20on%20it%3A%3C%2FP%3E%3COL%3E%3CLI%3EApplication%20hygiene%20%E2%80%93%20this%20is%20the%20most%20crucial%20part%2C%20if%20you%20remove%20any%20Application%20from%20your%20DPs%20it%20should%20also%20be%20removed%20from%20any%20supersedence%20chains!%3C%2FLI%3E%3CLI%3EReporting%20on%20any%20superseded%20Apps%20not%20available%20on%20DPs%20%E2%80%93%20this%20is%20the%20trickiest%20part%20and%20actually%20the%20reason%20for%20this%20post%20as%20there%20are%20some%20scenarios%20where%20application%20hygiene%20alone%20is%20not%20sufficient%2C%20so%20we%20need%20at%20least%20a%20proper%20way%20to%20check%20for%20it.%3C%2FLI%3E%3C%2FOL%3E%3CP%3ESo%20let%E2%80%99s%20focus%20on%20point%202%20and%20see%20if%20we%20can%20optimize%20our%20process%20from%20reactive%20to%20proactive%20%3B)%3C%2Fimg%3E%3C%2FP%3E%3CP%3ESearching%20the%20communities%20only%20resulted%20in%20various%20scripts%20returning%20the%20direct%20referenced%20Applications%20but%20not%20any%20superseded%20objects.%3CBR%20%2F%3ETime%20to%20engage%20the%20superpower%20of%20my%20Microsoft%20PFE%20colleagues%20and%20only%20a%20few%20hours%20later%20one%20of%20those%20ninjas%20came%20up%20with%20a%20script%20willing%20to%20share.%3C%2FP%3E%3CP%3ESo%20kudos%20and%20big%20thanks%20to%20%3CSTRONG%3EHerbert%20Fuchs%3C%2FSTRONG%3E!!!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENow%20here%E2%80%99s%20the%20Application%20supersedence%20chain%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20704px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F75066i7D45B2BE4B99F44E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%225.jpg%22%20title%3D%225.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Eand%20our%20simple%20Test-TaskSequence%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20701px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F75067i9F618145CCFB0F0B%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%226.jpg%22%20title%3D%226.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ENow%20let%E2%80%99s%20take%20the%20magic%20PFE%20sauce...%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F75069i58806354B519181F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%227.jpg%22%20title%3D%227.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EOutcome%20is%20a%20Union-GridView%20of%20all%20direct%20referenced%20Apps%20of%20the%20TaskSequence%20and%20their%20Supersedence%20Chain%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20510px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F75068iCD447E1EE893D9CB%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%228.jpg%22%20title%3D%228.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EAs%20well%20as%20another%20Gridview%20detailing%20the%20Distribution%20Status%20of%20all%20these%20Apps%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20516px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F75070i5AFF73D11D910D8C%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%229.jpg%22%20title%3D%229.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ECool%20isn%E2%80%99t%20it%3F%3C%2FP%3E%3CP%3ELink%20to%20the%20script%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2F1drv.ms%2Fu%2Fs!AokSzU2XY7THs4x0RehwdoaTBCYbhA%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EGet-TSAppSupChain.zip%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CH6%20id%3D%22toc-hId-890195003%22%20id%3D%22toc-hId-1064624430%22%3E%3CSPAN%20class%3D%22descriptionSubSectionTitle%22%3EDisclaimer%3C%2FSPAN%3E%3CSPAN%3E%3CBR%20%2F%3EThe%20sample%20script%20is%20not%20supported%20under%20any%20Microsoft%20standard%20support%20program%20or%20service.%20The%20sample%20script%20is%20provided%20AS%20IS%20without%20warranty%20of%20any%20kind.%20Microsoft%20further%20disclaims%20all%20implied%20warranties%20including%2C%20without%20limitation%2C%20any%20implied%20warranties%20of%20merchantability%20or%20of%20fitness%20for%20a%20particular%20purpose.%20The%20entire%20risk%20arising%20out%20of%20the%20use%20or%20performance%20of%20the%20sample%20scripts%20and%20documentation%20remains%20with%20you.%20In%20no%20event%20shall%20Microsoft%2C%20its%20authors%2C%20or%20anyone%20else%20involved%20in%20the%20creation%2C%20production%2C%20or%20delivery%20of%20the%20scripts%20be%20liable%20for%20any%20damages%20whatsoever%20(including%2C%20without%20limitation%2C%20damages%20for%20loss%20of%20business%20profits%2C%20business%20interruption%2C%20loss%20of%20business%20information%2C%20or%20other%20pecuniary%20loss)%20arising%20out%20of%20the%20use%20of%20or%20inability%20to%20use%20the%20sample%20scripts%20or%20documentation%2C%20even%20if%20Microsoft%20has%20been%20advised%20of%20the%20possibility%20of%20such%20damages.%20%3C%2FSPAN%3E%3C%2FH6%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-339019%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EApp%20Management%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ECM%20current%20branch%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOperating%20System%20Deployment%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Contributor

Recently, one of my customers was adopting their Bare Metal Win10 TaskSequence to also support starting the TaskSequence from FullOS.

So, easy as that...adding some steps to restart in WinPE etc. and give it a try. But surprise – the same TaskSequence running fine from WinPE is telling that there are some Applications missing on the DP when started from FullOS!?

Hmm, that sounds quite strange so let’s look in the cas.log

1.jpg

So, we can see the content with the ID Content_46562d77-698f-4c85-972a-ea7d340bb6f9.1 is getting requested but not found on any matching DPs. But what’s behind this content Id :smiling_face_with_smiling_eyes:

To find out I started the sql management studio an ran the following query to get the scopeId:

2.jpg

Now we’re able to get some more info about our missing link by running another query using the returned ScopeId

3.jpg

By clicking on the SDMPackageDigest link we can identify the Application behind. So, in this case an old Lexmark Software which wasn’t referenced in our TaskSequence and not distributed anymore. However, a newer Version of the App superseding the old one was referenced in the TaskSequence.

4.jpg

                           

So be aware that when starting a TaskSequence from FullOS not only all direct Apps referenced in the TaskSequence are checked if available on any DP (which is super easy to check in the console) but also all the superseded Apps – which does makes sense by the way.

Now as we know about the reason, we can take action on it:

  1. Application hygiene – this is the most crucial part, if you remove any Application from your DPs it should also be removed from any supersedence chains!
  2. Reporting on any superseded Apps not available on DPs – this is the trickiest part and actually the reason for this post as there are some scenarios where application hygiene alone is not sufficient, so we need at least a proper way to check for it.

So let’s focus on point 2 and see if we can optimize our process from reactive to proactive ;)

Searching the communities only resulted in various scripts returning the direct referenced Applications but not any superseded objects.
Time to engage the superpower of my Microsoft PFE colleagues and only a few hours later one of those ninjas came up with a script willing to share.

So kudos and big thanks to Herbert Fuchs!!!

 

Now here’s the Application supersedence chain

5.jpg

and our simple Test-TaskSequence

6.jpg

Now let’s take the magic PFE sauce...

7.jpg

Outcome is a Union-GridView of all direct referenced Apps of the TaskSequence and their Supersedence Chain

8.jpg

As well as another Gridview detailing the Distribution Status of all these Apps

9.jpg

Cool isn’t it?

Link to the script Get-TSAppSupChain.zip

 

Disclaimer
The sample script is not supported under any Microsoft standard support program or service. The sample script is provided AS IS without warranty of any kind. Microsoft further disclaims all implied warranties including, without limitation, any implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample scripts and documentation remains with you. In no event shall Microsoft, its authors, or anyone else involved in the creation, production, or delivery of the scripts be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample scripts or documentation, even if Microsoft has been advised of the possibility of such damages.
0 Replies