Installing Teams on RDS

Created by NHC IT Support, Modified on Mon, 23 Sep, 2024 at 11:43 AM by NHC IT Support

Issues installing TeamsBootStrapper.exe on Windows Server 2019 Datacenter

Thanks in advance for any assistance you can provide. I am trying to get the new work teams version to install on 4 virtual servers in a RD farm but have had no luck.

I sent the below email to the Microsoft 365 tenant supplier we have as that is where MS support page sent me but don't think they are going to be able to help and likely will send me off to Microsoft for server or teams developer team. Am hoping someone can shed some light and hopefully help me out with this:

==================================================================

We have a customer that has a Virtual Desktop server farm setup on a cluster host. It has 4 server that have 2 live for user connections at any one time. User profiles are stored in VXD file format and loaded/mounted on the login server they get assigned to when logging into the virtual desktop. 

They have had classic teams installed on these 4 servers for a while with some issues, however now that the new work/school version of teams is out and classic is ending support, they asked to have these servers updated to the new teams client.

 

I found the MS article “Upgrade to new Teams for Virtualized Desktop Infrastructure” and am following that document.

New Microsoft Teams for Virtualized Desktop Infrastructure (VDI) - Microsoft Teams | Microsoft Learn

 

In that document it indicates server 2019 (10.0.11763) is a supported version of OS for the new teams. The 4 virtual server are running Server 2019 data center (10.0.17763)

Image

Image

I have also verified app side loading is on for the server:

Image

I verified the WebView2 runtime is up to date mostly. There is one newer version released yesterday 6/13 but should be ok since the version installed is only from 6/8 and is one release version behind.

Image

 

 

In that article for installation it has links to the teamsbootstrapper.exe program and indicates it must be the latest version. I verified it is current with version 1.36.48605

Image

 

I also downloaded the MSTeams-x64.msix file from the link.

I have put these two files into a folder on the server c:\teamsinstall

 

I opened an admin powershell on one of the servers that is not currently in production to test installing to.

 

I changed the current path in the powershell window so that it is in c:\teamsinstall

I issued the command:

.\teamsbootstrapper.exe -p -o “C:\teamsinstall\msteams-x64.msix”

 

The result was:

“success”: false,

“error code”: “0x80070057”,

“errorMessage”: “MSIX installer is not supported on your windows operating system version. Please visit https://learn.microsoft.com/en-us/microsoftteams/new-teams-bulk-install-client for supported versions”

 

I also tried to run the command with just the -p parameter to have it download the installer but got the same error message.

Image

Going to the link it lists takes you to what I think is an older web page as it only lists windows 10 as a supported operating system. 

Image

I have done much searching to try and resolve this issue but have been unable. I went to put in a ticket with Microsoft since I think this is more of a server/teams development team issue, however it redirected me to the 365 console since it involves teams. On the tenant of course it sends us back to you guys for support. 

 

Any assistance that we can get to allow for the new teams to be installed on the servers is greatly appreciated specially since there are differing end of life dates floating around. In the document the client found the EOL on teams classic is 6/30 and on the install document is indicates 10/1.

Announcing general availability of the new Microsoft Teams app for virtual desktop infrastructure - Microsoft Community Hub

Image

 

As compared to the deployment document:

New Microsoft Teams for Virtualized Desktop Infrastructure (VDI) - Microsoft Teams | Microsoft Learn

Image


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

Image

**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 it HERE. 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: ***


1. Install all available updates for your Windows Server 2019 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:\admin\teams. Get the file HERE. You want the one for WORK or SCHOOL. 64 bit.

3. Open an elevated powershell prompt.

4. 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

5. 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.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article