Microsoft Teams is a chat and collaboration platform designed to simplify group work. In comparison to the previous services, Teams comes together with O365 bundles, as shown in the following screenshot:
https://docs.microsoft.com/en-us/microsoftteams/office-365-licensing:
Setting up a connection to Microsoft Teams works in a similar way to the previous services. There is a dedicated PowerShell module available named MicrosoftTeams
, which brings us to the following code:
#Install PowerShell module for Teams Install-Module MicrosoftTeams -Force #Credentials to connect to online service $UserCredential = Get-Credential -UserName '[email protected]' -Message 'Password' #Connect to service with user name and password #proving if the connection has been established correctly try { Connect-MicrosoftTeams -Credential $UserCredential $connectionSuccessfullyEstablished =$true } catch { $connectionSuccessfullyEstablished =$false }
If you want to use a multifactor authentication...