r/PowerShell • • Jan 14 '26

Export-ProvisioningPackage

Why doesn't this work?

Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -eq "MicrosoftTeams"} | Export-ProvisioningPackage -OutputFolder "c:\microsoftteams"

0 Upvotes

11 comments sorted by

View all comments

Show parent comment

1

u/dodexahedron Jan 14 '26

It is doable, but is not quick and easy, and it has to be done basically perfectly or something will be broken after deploying the image.

You'll probably want to start somewhere about here for the relevant documentation that youll need to piece together.

Store apps have to be given specific treatment or they won't be there after the user completes OOBE.

Be very deliberate and thorough when reading the docs. There is really critical specificity here and there that is in no way indicated as such, as well as polar opposite incorrect wording (less of that though), and you will probably read right over more than one while you bang it out, and not find out until next week, when one word suddenly catches your eye and makes all the difference.

Er... so I hear. 🫠

But also. Teams specifically isn't going to work for this. You will need to make your own. And that is a bad idea for other reasons.