August 3, 2020

Teams PowerShell Setup

In this post I explain how to setup Powershell for Microsoft Teams.

Run Powershell as Administrator


Install Teams Package

Run in PowerShell command:

Install-Module -Name MicrosoftTeams

Trust everything and it will be installed:


Test Connection

Connect-MicrosoftTeams -AccountId <uid>@<domain>

Replace <uid> by your o365 uid (might not be the same as windows username.)


You always need to connect before running Teams PowerShell commands.

Normally the AccountId is enough (TenantId will be automatically found out)


No comments:

Post a Comment