Installing the Microsoft Teams PowerShell Module
Updated: Feb 28
On February 15, 2021 Microsoft has decommissioned the Skype for Business Online PowerShell Module and rolled the commands that were available in that module into the new Microsoft Teams PowerShell Module. Whether you are using Teams in your organization or not, you will need to upgrade to the latest PowerShell module to manage Skype for Business Online with the latest commands.
One major caveat of the new module is that is you need to be running PowerShell 5.1 (Version 7 is unsupported as of 2/27/2021) on your host machine. In order to find out what version you are running on your host, run the following command: (Get-Host).Version
Below are examples of a supported and an unsupported major/minor version:
Step 1: Updating the PowerShell Version of your Host & Installing the latest PowerShellGet Module
If you have an unsupported version of PowerShell on your machine, you will need to update it to version 5.1. If you have a supported version, skip to Step 2 below. Note that you must be running Windows 7 SP1, Server 2008 R2, or a later version of Windows in order to install this module update! Windows Server 2016 & 2019 should already be running 5.1.
Follow the below steps to update PowerShell on your machine:
Download and install the Windows Management Framework 5.1 on the target machine from Microsoft: https://www.microsoft.com/en-us/download/details.aspx?id=54616
Run the installers that have the label that is specific to the operating system version that you are running. You will be required to reboot your machine!
After the reboot, verify that you are running PowerShell 5.1 by running the following command: (Get-Host).Version
Update the PowerShellGet Module by running the following command: Install-Module PowerShellGet -Force -AllowClobber
Note: If the link above stops working, you can download each file from my blog directly:
Step 2: Installing the Microsoft Teams PowerShell Module
Once running PowerShell version 5.1, you can begin the installation of the Teams PowerShell Module. To install this module:
Open Microsoft PowerShell as an Admin
Run the following command: Install-Module MicrosoftTeams
Note: You may receive a notice that the module is installing from an untrusted repository. Press A to continue the installation.