Why isn’t my PowerShell command for exporting Microsoft Teams working?

0
8
Asked By CuriousCoder92 On

I'm trying to export the Microsoft Teams provisioning package using PowerShell, but it seems to be failing. The command I'm using is: Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -eq "MicrosoftTeams"} | Export-ProvisioningPackage -OutputFolder "c:microsoftteams". Can anyone explain why this isn't working?

4 Answers

Answered By DistroDude On

You won't easily find the built-in Teams Appx package as an exportable file; it's part of the Windows image. Instead of trying to pipe commands together, consider using DISM to handle this. You can mount the Windows image and list the provisioned packages. Just keep in mind that extracting Appx packages directly isn't straightforward, so prepare for some manual work.

DevWhiz -

I see! What steps are involved in using DISM for this?

Answered By TechGuru88 On

The issue here is that the output from Get-AppxProvisionedPackage isn't compatible with Export-ProvisioningPackage. These two commands belong to different modules and serve different purposes. Export-ProvisioningPackage is intended to handle provisioning package projects, not AppxProvisionedPackage objects. If you want to back up the Teams package, you'll need to manually download the installer or use Windows Configuration Designer to create a provisioning package.

CodeMaster47 -

I didn't know we couldn't just extract it from the store. Thanks for clarifying!

Answered By ScriptNinja21 On

You might run into further complications with DISM and Teams since it's not designed to export all app types cleanly. For deploying Teams, I'd suggest looking into Intune to manage it more effectively, which can handle those installations during the initial setup.

Answered By PowerShellPanda On

Have you tried using winget to download it instead? It's a simpler solution if you're just looking to get Teams installed.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.