r/PowerShell • u/GMMitenka • 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
View all comments
1
u/CurtisInTheClouds Jan 14 '26
The built-in Teams Appx package is provisioned in the Windows image, but not exposed as a standalone .appx file you can easily extract. It’s not available in the Microsoft Store for direct download in that format. Export-ProvisioningPackage doesn’t work on AppxProvisionedPackage objects, so you can't pipe it directly. You could try using DISM.
Here's what Copilot lists as steps, I'm about to leave work and can't type it all out right now in my own words:
powershell Dism /Mount-Wim /WimFile:"C:\Path\to\install.wim" /index:1 /MountDir:"C:\Mount"powershell Dism /Image:"C:\Mount" /Get-ProvisionedAppxPackagesExport the package: Unfortunately, DISM doesn’t support direct export of Appx packages. But you can: