How to install PowerShell for Microsoft Teams

PowerShell is a tool that allows the automation of repetitive tasks and has support for pretty much everything Microsoft-related.

Microsoft Teams is not exception and there is dedicated module that allow you to automate the administrative tasks on the platform.

How to install PowerShell for Microsoft Teams

The PowerShell module for Microsoft Teams is not installed by default on Windows, so it needs to be added to the operating system.

ℹ️ Important!
The Microsoft Teams PowerShell module requires PowerShell 5.1. To find out what version is running on your computer, execute the following cmdlet:

Get-Host | Select-Object Version

If the cmdlet returns a lower version than 5.1, execute the following cmdlet to update it:
Install-Module -Name PowerShellGet -Force -AllowClobber

To get the Microsoft Teams module installed on your system, follow these steps:

  1. On your computer, open the PowerShell command line with administrator permissions. To do so, search for Windows PowerShell on Windows and then select the Run as Administrator option, as highlighted in the following screenshot
    How to install PowerShell for Microsoft Teams
  2. On the command line, execute the following command
    Install-Module -Name MicrosoftTeams
  3. Press Y followed by Enter to trust and enter the repository, keep the console open while the download and installation are in progress
    How to install PowerShell for Microsoft Teams

Now that you have the Microsoft Teams module installed on your system, you are ready to start using it.

If you are not familiar to PowerShell and what can be done with it in Microsoft Teams I recommend you my book Hands-On Microsoft Teams where you will find a dedicated chapter that cover the module with real world scenarios and samples.

Hands-On Microsoft Teams book


No comments yet

Leave a Reply


I've been working with Microsoft Technologies over the last ten years, mainly focused on creating collaboration and productivity solutions that drive the adoption of Microsoft Modern Workplace.