Quick Overview of the new Microsoft Teams PowerShell Module

Quick Overview of the new Microsoft Teams PowerShell Module

Microsoft has released the first version of the Microsoft Teams PowerShell cmdlet today on November 3rd, 2017 with version 0.9.0. You can install it from the PowerShell Gallery over here: https://www.powershellgallery.com/packages/MicrosoftTeams/0.9.0 . This blog post will simply be an overview of what’s possible, without going too much in the technical details of each cmdlet, as the official documentation is not even out yet

First, we need to connect to Microsoft Teams by using the Connect-MicrosoftTeams  cmdlet as seen below.

Microsoft Teams PowerShell

I can then view all my Teams by running the Get-Team  cmdlet

Microsoft Teams PowerShell

Teams use the same ID as the Office 365 Groups they are a part of, so from a management point of view, you can create some interesting management scenarios when managing both of them. When creating a Team you automatically create a group, but an Office 365 Group does not create a Team by default.

Microsoft Teams PowerShell

Let’s play with the First Team settings, see what we can do. First, I can view the Fun settings by running the Get-TeamFunSettings  cmdlet. I can view the Guest Settings with the Get-TeamGuestSettings  and the Team Member settings with the Get-TeamMemberSettings  cmdlet.

Microsoft Teams PowerShell

I can also change the settings, for example I just ruined the fun of everyone in the team by running the following cmdlet:

Set-TeamFunSettings -GroupId $GroupId -AllowGiphy $false

In that team, the GIF button is gone instantly from the options as you can see below.

Microsoft Teams PowerShell

In my other Teams, it’s still visible!

Microsoft Teams PowerShell

I can also block users from editing messages by running the Set-TeamMessagingSettings  cmdlet.

Microsoft Teams PowerShell


Microsoft Teams PowerShell


Microsoft Teams PowerShell

I can also view and edit membership by using the Get-TeamUser , Remove-TeamUser  and Add-TeamUser  cmdlets!

Microsoft Teams PowerShell

At the time of writing this blog post, there are 24 PowerShell cmdlets in the Microsoft Teams Module, which you can view below!

Microsoft Teams PowerShell

While this is not an in depth review, I hope this small overview will make you download the PowerShell module and try it out in your own tenant!

Follow me on Social Media and Share this article with your friends!

Leave a comment and don’t forget to like the Absolute SharePoint Blog Page   on Facebook and to follow me on Twitter here  for the latest news and technical articles on SharePoint.  I am also a Pluralsight author, and you can view all the courses I created on my author page.
5/5 (11)

Please rate this


That’s great!

ok, i’m going to risk asking the stupid question…. I have just spend the better part of the day learning and playing with PS for MS Teams. I’m not sold. How do you find it easier /more productive to learn all these cmdlets to do something you can just click on the GUI in MS Teams to do? I find I can find all of the info the cmdlets do in 1/2 the time right in MS Teams App. What am I missing?



Please how do I delete an array of users from a team??? .. thanks

Jemanuel Formeloza

Is there a command to get the conversations per team?

Unfortunately not that I know of


Thanks for the post!!

We often receive issues that user being the owner of the teams cant see files in file tabs. Is there any way to find out the problem via powershell?

Leave a Reply