Microsoft Teams PowerShell Commands
The MicrosoftTeams module: teams, policies, voice and meeting settings.All Microsoft Teams PowerShell pages
- Connect-MicrosoftTeams: interactive, device code and certificate (app-only) sign-inConnect-MicrosoftTeams signs in to Teams PowerShell. Use -UseDeviceAuthentication without a browser, or -Certificate, -ApplicationId and -TenantId for app-only.
- Get-Team and New-Team: list and create Microsoft Teams teams with PowerShellGet-Team filters teams by name, user, visibility or archive state; New-Team creates one with -Visibility Public, Private or HiddenMembership. Add members too.
- Grant-CsTeamsMeetingPolicy: assign a Teams policy to a user, a group, many users or the whole tenantGrant-CsTeamsMeetingPolicy -Identity assigns to one user, -Group to a group with a rank, -Global to everyone. For thousands of users use a batch assignment.
- Set-CsTeamsMessagingPolicy: change Teams chat settings (edit, delete, Giphy, read receipts)Set-CsTeamsMessagingPolicy -Identity Global changes the org-wide chat settings; create a custom policy with New-CsTeamsMessagingPolicy and assign it with Grant.