Install Microsoft Teams Client

Microsoft Teams is going to replace Skype for Business Online. Microsoft Teams is now generally available in Office 365 so it’s a good time to take a look at how you can install Microsoft Teams so it’s installed on every computer in your organization.

In this article, we will look into how you can Install or Deploy Microsoft Teams. Using the setup.exe or the MSI file to deploy the Teams Installer.

Background information about Microsoft Teams Installation 

Before we start installing Microsoft Teams I first need to explain a bit about the installation self. Or to be more specific, about the location of the installation. Microsoft wants Teams to be always up to date for the best user experience.

Normal users can’t install or update software that is installed under the Program Files folder, so they decided to install Microsoft Teams in the local AppData of the user. This way Teams can stay up to date because the user can install in the AppData folder.

But this also means that there will be a Teams.exe for every user that logs in to a computer. Not an ideal situation for larger organizations. Also, Software Restriction Policies can be an issue, blocking users from installing or updating Microsoft Teams in the AppData folder. 

The MSI won’t fix this issue, it will only prepare the installer on the computer so Teams will be installed automatically after a user logs in. 

Download the Microsoft Teams Cheat Sheet

I have created a Microsoft Teams cheat sheet to help you or your users get started with Microsoft Teams. In the cheat sheet, you will find the most useful key combination, tips and tricks, and buttons explained.

Installing Microsoft Teams

Users can Install Microsoft Teams themself, they can download the installer from the Teams website or from the Microsoft Teams download page. The users don’t need administrator rights to install, because Teams will be installed in the user’s profile folder. 

After the user is logged in on https://teams.microsoft.com he or she gets the online version of Microsoft Teams. In the lower-left corner, you will find the menu item “App Downloaden”, this will download and install the Microsoft Teams Desktop App.

install microsoft teams

Microsoft Teams is self-updating, so the users don’t have to worry about keeping the client up to date.

The Microsoft Teams Client is available for Windows, Mac, and Mobile phones. By default, the client will be installed in the user profile, %userprofile%\Appdata\Local\Microsoft\Teams.

Improve your Microsoft Teams meetings with Decisions for Microsoft Teams. Give structure to your meetings and collaborate upfront with the power of Office 365.

Preparing for Microsoft Teams Deployment

Now we don’t want every user to need to download and install Microsoft Teams themself. So we have two options to deploy it to the user. 

Before we create a deployment script, we first need to download the client. There are two versions available:

  • Normal installer for Windows and Mac. You can download these at Microsoft. The setup.exe only comes with the basic switches for silent installation or uninstall
  • There is also an MSI package available for Windows. This package is suitable to use with a deployment program like PDQ or SCCM and can also be used with a GPO. You can download the Microsoft Teams 32bit Client MSI file here and the 64bit Client here.

Using the Setup.exe Installer

The Microsoft Teams Setup.exe installer only comes with a silent install or silent uninstall switch. You can use this to create a PowerShell script that runs when a user logs in to install the Teams Client.

Download the installer and place it on a network share or you can also place it in the NetLogon folder.

We can install Microsoft Teams with this simple command. This needs to be run under the user context mode because it will install Teams in the %userprofile%\appdata.

Teams_windows_x64.exe -s

To uninstall teams from a user account we can use the following cmd

%localappdat%\Microsoft\Teams\Update.exe --uninstall -s

If you need to completely remove or uninstall Teams, then check out this article that will go more into depth on complete removing Teams, including a cleanup script.

You can create a logon script that you can link to a GPO. Add a condition to check if the file Teams.exe is present in the folder %userprofile%\appdata\Microsoft\Teams\Current. The folder
%userprofile%\appdata\Microsoft\Teams\ won’t be removed, neither will the file update.exe when you uninstall Teams.

I created a PowerShell script that will install or uninstall Microsoft Teams. You can find the script here at the Technet Gallery

Deploying Microsoft Teams with GPO

An easier way to install Teams is to install the Teams Installer on every computer. The Teams Installer is placed in the Program Files folder and will run automatically when a new user logs in to the computer. It will then install Teams in the user-profile folder.

You can also deploy the MSI file with a Group Policy. First, make sure you place the MSI file in a central location. The netlogon folder is always a pretty good place for this (\\domain.local\netlogon).

  1. Open the Group Policy Management
  2. Create a new GPO at an appropriate place, let’s call it Deploy_MSFT_Teams
  3. Edit the GPO and navigate to Computer Configuration > Policies > Software Settings > Software installation
  4. Add a new package (right-click > new)
  5. Select the MSI file and choose Assigned
Deploy Microsoft Teams with GPO

If you get an error “There is no software installation data object in the Active Directory” then make sure that the Authenticated Users have read permission on the folder and file. 

Deploying Microsoft Teams with a Deployment Tool

If you have a deployment tool then you can use that of course to install the Teams Installer. You will need to use the MSI file, this will install the Teams Installer in the Program Files folder and it will run automatically for when a user is logging in to the computer.

Deploying Microsoft Teams Client is pretty straightforward, just run de MSI file with the default ALLUSERS=1 /qn /norestart options to silently install it.

Deploy Microsoft Teams with PDQ

Cleaning up Teams

If you or a user has already installed Teams with the setup.exe file, then the Teams Installer won’t run for that user. That shouldn’t be an issue, because Teams will stay up to date by itself, but if you want to remove it you can use a cleanup script that Microsoft has provided.

Make Teams a bit more fun with these funny backgrounds for Microsoft Teams

Summary

Installing Microsoft Teams for multiple users is pretty simple, even though it’s installed for every user. The install is capable of detecting existing installations and avoids reinstalling when you just removed it. (if leaves a .dead file in the program folder). With the self-update capability, you don’t have to update the client for all the users.

While Microsoft Teams should be installed in the %userprofile%\appdata\local folder I have the situation that it’s actually installed in C:\ProgramData\%username%\Microsoft\Teams. I haven’t figured out why this is happening. The documentation doesn’t mention anything about the ProgramData folder so I have reached out the Microsoft if they can explain why this is happening.

The only thing I can come up with is our Software Restriction Policy. We block every .exe file in the %userprofile% folders, so Teams simply can’t install there. If I know more about this I will update this article accordingly.

You may also like:

19 thoughts on “Install Microsoft Teams Client”

  1. Hi, I’ve been using the machine-wide installer (teams_windows_x64.msi v1.5.0.2164 with ALLUSERS=1 and the start menu shortcut isn’t being created. Teams is also not running on login either even though the Run key is present. Anyone facing these issues?

  2. Rudy,

    Have you heard anything back from Microsoft about the location being %ProgramData% instead of the user’s APPDATA folder? I am having a similar thing occur in my environment where we also use Software Restriction Policy. I even unblocked the Microsoft\Teams folder thinking that would resolve the issue but it did not.

  3. So is it possible to have Teams install to C:\Program Files (x86) using the MSI installer? I have tried but with little success. It still wants to move the bulk of the app to the %appdata% user folder which is not ideal. Especially in an environment folder redirection and roaming profiles. Is MS really that stupid when it comes to this? They give us a MSI but it is nerfed.

  4. Hi,

    I think script to uninstall teams from a users account is “%LOCALAPPDATA%\Microsoft\Teams\Update.exe –uninstall -s”, instead of “%userprofile%\Microsoft\Teams\Update.exe –uninstall -s”

  5. Hi Rudy,
    You referred to Microsoft’s cleanup script, but their instructions are poor and it looks like Teams must be uninstalled as each person that has it installed. That’s fine if only one user per machine, but not if you have support staff or use deployment tools that remotely log on, as each account gets a rapidly obsoleted copy.
    We also are in a mess because we have used the regular EXE installer, the machine-wide MSI installer, the VDI installer (manual and SCCM) and even the Office 365 Apps install to deploy Teams, sometimes more than one install method on the same machine which can break the automatic updating!
    It would be great to have a removal and cleanup script that handles all those install methods and all the locations it can get itself into (AppData, Program Files, ProgramData and registry), so we can get back to a blank page and start a fresh deployment using only one method. Do you or any of your readers like this challenge?

  6. hi , i just found here how to deploy teams in program files :
    microsoft added a special mode parameter (allusers=1) to allow installation on a shared computer but it can be used on an individual one and you need to trick the installer thinking he is on a terminal server.

    basicaly to manualy install you need to :

    – allow vdi mode by creating the ica registry ”HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\PortICA”

    – install the msi with msiexec /i “path_to_msi” ALLUSER=1.

    and voila

    to deploy with gpo you need the msi file and the mst (transformation files to pass the parameters to the msi)
    files are available on the website

    Good luck!

  7. Hi,

    I working with Terminal Server with a lot of users that installed Microsoft Teams.
    I looking for remover script to uninstall Microsoft teams from all location that needed.

    How can I do it?

    • I think you will need to take a look a PowerShell to remove all the files. Also, if you don’t want Teams to get installed, make sure you block the install with a GPO

  8. Just to give a hint, to deploy msi for all users Teams use ALLUSER=1 switch (without S, like ALLUSER(S) mentioned in the article. So, of using PDQ deploy to deploy teams, you must put the “custom” checkmark under the “command line” text box, and change ALLUSERS=1 to ALLUSER=1

  9. I too have the same issue with installs to programdata.
    I have confirmed this is because of SRP blocking the installer from running, although I would have expected it to fail outright, not decide to install somewhere else (c’mon Microsoft!).

  10. Is there any group policy settings that one can set on the domain level for teams? Things like auto startup / stay in background est…

  11. Why do you create and install Teams to the folder %programdata%\%username%\Microsoft\Teams\ rather than install it to the default location %userprofile%\Appdata\Local\Microsoft\Teams?

    • Hi Chris,

      After reading your comment I wondered exactly the same. It doesn’t make any sense. I checked the documentation again and it should install in the user’s appdata\local folder. So I removed everything I installed it again, and somehow it gets installed in the programdata folder on my computer. Now I am not the only one, as you can read here on Github more people have the same issue. I tested it on the other computer and there it installs nicely in the users appdata\local folder.

      The other computer is a private one, so the only thing I can think of is that our Software Restriction Policy forces it to install in the programdata. We block every .exe in the appdata folders, so Teams can’t be installed there. I am not able to test this it, out I can’t think of anything else. There is no documentation about this.

Leave a Comment

0 Shares
Tweet
Pin
Share
Share