Install Teams RDS - OnTheKnows/A GitHub Wiki

Resolution:

Installing Teams on RDS Enable these Group Policies: "Allow all trusted apps to install" and "Allow deployment operations in special profiles" located at Computer Configuration -> Administrative Templates -> Windows Components -> App Package Deployment.

**It is important to have both group policy settings enabled as listed above. "Allow all trusted apps to install" & "Allow deployment operations in special profiles" MUST be enabled on your RDS servers. If you don't, you'll get an error in powershell that says "To install this application you need either a Windows developer license or a sideloading-enabled system" when you try to run the Dism command below.

**** You also need the Microsoft Edge WebView2 Runtime installed. **

A few notes:

  • Using the command Add-AppxPackage works, but only for installing Teams on a single user account. Teams won't be available to any other users if you use Add-AppxPackage to install teams. You must use DISM along with the Add-ProvisionedAppxPackage command for it to show up for all user accounts. If you've previously used the Add-AppxPackage command to install teams, you'll need to remove it before you can use the Add-ProvisionedAppxPackage method to install Teams. (see below)

  • Make sure you remove all versions of existing teams installs first. You may get an error if you don't when running this command.

  • If you get error 1168: Element not found, it means teams is already installed. Run Get-AppxPackage, and look for MSTeams. If it exists you need to use the powershell command Remove-AppxPackage to remove it.

  • Example: Remove-AppxPackage -Package MSTeams_24074.2323.2827.4973_x64__8wekyb3d8bbwe (the name of your installed teams instance may be different. Use command Get-AppxPackage to find the name of your teams install.)

  • Uninstall the Teams machine wide installer before continuing if you see it in Programs and Features.

*** Instructions:***

  1. Install all available updates for your Windows Server and reboot.

  2. Place a copy of the MSTeams-x64.msix installer file on your server. For this example, I placed a copy of the file in C:****\msteams-x64.msix.

  3. Open an elevated powershell prompt.

  4. In the elevated Powershell prompt, run: Dism /Online /Add-ProvisionedAppxPackage /PackagePath:c:****\MSTeams-x64.msix /skipLicense

If that does work, go to this command and step 5, otherwise, try this command. If skip license isn't recognized, then remove that part of the command. Add-AppxPackage -Path c:****\msteams-x64.msix /skiplicense

  1. Take ownership of C:\Program Files\WindowsApps\MSTeams_ folder and give all users read

Give it a couple of minutes to install. It should take no more than 3 or so minutes. It willsay Operation Completed Successfully once it's done. If it seems frozen, hit the enter button on your keyboard. Mine didn't say anything, but after hitting enter, it showed the successful results of the install.

You will see "Microsoft Teams (work or school)" appear in the start menu. The icon will have a little blue oval in it that says NEW.

You'll no longer see teams appear in programs and features. To check if it's installed, and to see the version number, in an elevated powershell window, run Get-AppxPackage. You'll see it show up as MSTeams.

⚠️ **GitHub.com Fallback** ⚠️