Advice through experience in Office 365, Security, and Azure
Microsoft Teams: PowerShell Connection Steps

Microsoft Teams: PowerShell Connection Steps

Are you looking to connect using PowerShell to your Microsoft Teams environment? Then this is the blog for you where I will provide step by step instructions along with screen pictures to show you how it is done.


  1. Open PowerShell on your Windows desktop. Do this by simple typing PowerShell in the search area. Make sure you choose the Run as Administrator option.
  1. You could already have the Microsoft Teams PowerShell module installed. Check your system using the command: Get-Module *teams*

Notice in this screen capture that I do not have any results, meaning the module is not loaded.

In this screen capture, I do have the module installed

  1. Next, let’s install the module using this command:

Install-Module -Name MicrosoftTeams

When prompted, enter A for Yes to All

Note: This is a 58MB module, so it may take a few minutes to download and install

When completed, the command prompt will reappear:

  1. Now let’s check to make sure there are no updates to this module. If you already had the module installed, this step is especially helpful. Use the command:

Update-Module MicrosoftTeams

Here, I had no updates to install:

  1. In this step, I will connect to Microsoft Teams. Use the command:


  1. In a pop-up prompt, enter the administrator credentials for your organization. You may also you should be using be prompted for your Multi-Factor Authentication(MFA). For information about how to setup MFA, see this blog I wrote.
  1. Once connected successfully, you will see a screen similar to this:
  1. Congratulations! You are now connected to Microsoft Teams using Microsoft PowerShell!
  2. To get a list of all available cmdlets in Microsoft Teams, use the command below:

Get-Command -Module MicrosoftTeams

Note: A full list of cmdlets and detailed explanations of what each do is available in this MicrosoftTeamsPowerShell document.

Please leave any comments or questions in the space below. Thank you for visiting!

One comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: