theme-sticky-logo-alt

Quick Overview of the new Microsoft Teams PowerShell Module

8 Comments

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

Before:

Microsoft Teams PowerShell

After:

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 Vlad Talks Tech 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.
Previous Post
Review of Lanteria HR Time and Attendance module running on SharePoint
Next Post
New Pluralsight Course: Reporting with PowerShell HTML and Enhanced HTML

8 Comments

  • November 3, 2017 at 3:40 pm
    kushan

    Notify me

    Reply
  • November 3, 2017 at 3:42 pm
    kushan

    That’s great!

    Reply
  • December 12, 2017 at 5:53 pm
    Joe

    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?

    Reply
    • January 22, 2018 at 6:07 pm
      Will

      Automation…

      Reply
  • June 21, 2018 at 1:16 pm
    DAVID KOSOBAMEJI

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

    Reply
  • September 25, 2018 at 1:42 am
    Jemanuel Formeloza

    Is there a command to get the conversations per team?

    Reply
  • September 12, 2019 at 8:25 am
    Azhar

    Hello,

    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?

    Reply

Leave a Reply

15 49.0138 8.38624 1 0 4000 1 https://vladtalkstech.com 300 1