Additional features, settings, or issues not covered by specific Microsoft Teams categories
Very frustrating for RDS users as well. There are a few ways to get this done, but here has been my most successful.
Installing Teams on RDS
Enable these GPs
**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. Get itHERE. If the link ever breaks, just search online for it. It's usually the first search result.
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: ***
- Install all available updates for your Windows Server 2019 server and reboot.
- 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:\admin\teams. Get the file HERE. You want the one for WORK or SCHOOL. 64 bit.
- Open an elevated powershell prompt.
- In the elevated Powershell prompt, run: Dism /Online /Add-ProvisionedAppxPackage /PackagePath:c:\teams\MSTeams-x64.msix /skipLicense
If that does work, go to this command and step 5.
Add-AppxPackage -Path c:\teams\msteams-x64.msix /skiplicense
- Take ownership of C:\Program Files\WindowsApps\MSTeams_<version> 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 will say 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.
Using this method to install teams on Windows Server 2019 will ensure all users that use the server through RDS can use teams.