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.
I can then view all my Teams by running the Get-Team cmdlet
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.
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.
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.
In my other Teams, it’s still visible!
I can also block users from editing messages by running the Set-TeamMessagingSettings cmdlet.
Before:
After:
I can also view and edit membership by using the Get-TeamUser , Remove-TeamUser and Add-TeamUser cmdlets!
At the time of writing this blog post, there are 24 PowerShell cmdlets in the Microsoft Teams Module, which you can view below!
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!
| |
|