Teams Administration: Powershell & Admin Center

This article outlines the steps to manage Microsoft Teams from powershell and admin center.

Download

We need to download the Microsoft Teams Module from the powershell Gallery

Install-Module -Name MicrosoftTeams -RequiredVersion 0.9.0

https://exchangequery.files.wordpress.com/2018/10/pwt.png?w=600

https://exchangequery.files.wordpress.com/2018/10/pwt1.png?w=600

Verify if the module is installed

Get-Module MicrosoftTeams -ListAvailable

https://exchangequery.files.wordpress.com/2018/10/fm11.png?w=600

Connect to Microsoft Teams

Connect-MicrosoftTeams -Credential $cred

https://exchangequery.files.wordpress.com/2018/10/pwt2.png?w=600

To view the teams

Get-Team

https://exchangequery.files.wordpress.com/2018/10/pwt3.png?w=600

To view Team Guest Settings and Team Fun settings

Get-TeamGuestSettings

Get-TeamFunSettings

https://exchangequery.files.wordpress.com/2018/10/pwt5.png?w=600

https://exchangequery.files.wordpress.com/2018/10/pwt6.png?w=600

List of team commands available as of now

Get-Command -Module *teams*

https://exchangequery.files.wordpress.com/2018/10/pwt8.png?w=600

To create new Team

New-Team -DisplayName TeamName -Description GiveDescription -AccessType private -AddcreatorasMember:$false

https://exchangequery.files.wordpress.com/2018/10/pwt9.png?w=600

https://exchangequery.files.wordpress.com/2018/10/pwt10.png?w=600

Unfortunately Add-TeamUser is not available for bulk operation as of now. Microsoft will release them in near future very soon from teams module.

https://exchangequery.files.wordpress.com/2018/10/pwt12.png?w=600

Bulk adding/removing  the associated group unified group for that team is not populating the users to the Team immediately. The Microsoft Teams PowerShell module is based on Microsoft Graph.This is because of the Microsoft Graph SLA is 24 hours to replicate and synchronize any changes done from azure AD.

Below command can be used to bulk add the users to associated teams group.

Import-Csv D:\Teams\Test.csv | % {Add-AzureAdGroupMember -ObjectID mentionobjectid -Refobjectid $_.objectid}

https://exchangequery.files.wordpress.com/2018/10/pwn.png?w=600

Below command can be used to bulk remove the users to associated teams group.

Import-Csv D:\Teams\Test.csv | % {Remove-AzureAdGroupMember -ObjectID mentionobjectid -Refobjectid $_.objectid}

https://exchangequery.files.wordpress.com/2018/10/pwn1.png?w=600

The same action can be performed via unified group as well.

Import-Csv E:\Teams\T1.csv | % {Add-UnifiedGroupLinks -Identity T1 -LinkType Members -Links $_.userprincipalname}

https://exchangequery.files.wordpress.com/2018/10/fm311.png?w=600

Now the new admin center for Microsoft Teams and SFB have options to manage MS teams

https://exchangequery.files.wordpress.com/2018/10/untitled.png?w=600

Adding and updating locations data

https://exchangequery.files.wordpress.com/2018/10/untitled1.png?w=600

Following options are available from end users options in MS Teams

https://exchangequery.files.wordpress.com/2018/10/untitled4.png?w=600

Following meeting policies to control the features are available

https://exchangequery.files.wordpress.com/2018/10/untitled6.png?w=600

Following org wide settings are available

https://exchangequery.files.wordpress.com/2018/10/untitled7.png?w=600

https://exchangequery.files.wordpress.com/2018/10/untitled8.png?w=600

We have the meeting customization settings

https://exchangequery.files.wordpress.com/2018/10/untitled9.png?w=600

Option to customize the real time media traffic to online is also available

https://exchangequery.files.wordpress.com/2018/10/untitled10.png?w=600

Controlling  the live event policies is present

https://exchangequery.files.wordpress.com/2018/10/untitled11.png?w=600

Global user level policies can be enforced

https://exchangequery.files.wordpress.com/2018/10/untitled12.png?w=600

Controlling external access

https://exchangequery.files.wordpress.com/2018/10/untitled13.png?w=600

We have option to control the guest access settings

https://exchangequery.files.wordpress.com/2018/10/untitled14.png?w=600

We have very nice option to have email integration, File sharing option and show organization tab to end users.

https://exchangequery.files.wordpress.com/2018/10/untitled15.png?w=600

Skype for business Interop, search and Bots feature can be customized.

https://exchangequery.files.wordpress.com/2018/10/untitled16.png?w=600

We have the teams upgrade options which have island mode set by default.

https://exchangequery.files.wordpress.com/2018/10/untitled17.png?w=600

After this we have the Call quality dashboard and first line worker configuration as a last option.

The First line worker configuration will be removed and will not be available after october 2019 according to Microsoft . All these features available in  first line worker configuration are available in MS Teams and customer needs to shift to MS teams.

Above are the list of administrative options available for Microsoft Teams as of now and they will be definitely changing and adding more new features since Microsoft is more focused on enhancing and bringing new features in Microsoft teams.