How To Connect Microsoft Teams Using PowerShell
Open Power Shell as an Administrator
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
Run the following command to get all the teams.
Get-Team