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.

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

Recommended Blog: 10 Useful Microsoft Teams Apps to Boost Your Productivity (APAC edition) — Part 1

About the Author:

I’m a Microsoft Office Development MVP

With a degree in computer science I’ve been working with SharePoint over the last seven years, mainly focused on creating collaboration and productivity solutions that drive the adoption of Microsoft Modern Workplace.
A true tech enthusiast and author of “HANDS ON SharePoint” and “HANDS ON Teams” blogs I love to share my knowledge.


Ferreira, J. (2022). How to install PowerShell for Microsoft Teams. Available at:

Share this on...

Rate this Post: