Connect PowerShell to Microsoft Teams

Connecting with PowerShell to the Teams module.


Often I'm asked: How to connect to Teams Module with PowerShell.

If it fails with the message below, this is in Windows 10/11 the issues with Set-ExecutionPolicy.



Set-ExecutionPolicy Unrestricted

Required: PowerShell 5.1, .NET Framework 4.7.2

Install-Module -Name PowerShellGet -Force -AllowClobber

Install-Module -Name MicrosoftTeams -Force -AllowClobber

(or if installed: Import-Module PowerShellGet, Import-Module MirosoftTeams)

Connect-MicrosoftTeams


Comments

Popular posts from this blog

How to hide users from GAL if they are AD Connect synchronized

Cannot join external Lync Meeting: Lync Edge Server Single IP Address (Lync Edge Server Single IP Web Conferenceing Problem)

MFA with Guest Access and different tenants settings