There’s no doubt Microsoft Teams is being adopted worldwide as a standard in enterprise collaboration streams, and also that is particularly not easy to keep it clean and sorted as the number of teams grows, especially public ones.
PowerShell surely will do a good job here, so let’s try it
Install Microsoft Teams PowerShell Module
Opened PowerShell console as administrator, and installed required module
1 Install-Module -Name MicrosoftTeams
Checking for availability and commands list
1 2 Get-Module -Name MicrosoftTeams Get-TeamHelp
For now a bit limited, but surely will be improved next versions
Connecting to Microsoft Teams tenant
1 Connect-MicrosoftTeams -Account id firstname.lastname@example.org
Creating Team and add users
Very very easy…firstly, creation of the test team
1 $group = New-Team -DisplayName "string_name" -Visibility "public or private"
Adding users (you’ve got it; can be scripted!!)
1 Add-TeamUser -GroupId $group.GroupID -User email@example.com
Also one liner…so to be scripted!!
1 New-TeamChannel -GroupID $group.GroupID -DisplayName "String_name" -Description "String_Description"
Having in mind this is the first release of the module, I think major commandlets are here, so Microsoft Teams admins will appreciate it to keep their environment clean and sorted. Also, I’m sure this won’t be the last version, so thinking in near future, to improve processes and tasks automation (for example on new comers to company) this kind of tooling is something to use on a daily basis.