LatestMicrosoft TeamsPower ShellSoftware Support

How To Connect Microsoft Teams Using PowerShell

Open Power Shell as an Administrator

Power Shell ITDukes

Go to Start
Search for Power Shell
Right click on Windows Power Shell
Run as Administrator

Run the following commands

Install-Module MicrosoftTeams

(Need to configure this setting only once on your computer)
-Press “A” or “Y”
Press Enter

Import-Module MicrosoftTeams  
Connect-MicrosoftTeams -Credential $credentials 

Credentials Office 365 PowerShell

Run the following command to get all the teams.

Get-Team