This article will cover how to connect to different Microsoft 365 services.
Exchange Online
Security and Compliance
Sharepoint Online
Microsoft Teams
Connect to Exchange Online
Install Module:
Install-Module -Name ExchangeOnlineManagement -RequiredVersion 2.0.5
Connect to Exchange Online
$Creds = Get-Credential Connect-ExchangeOnline -Credential $Creds
Connect to Security and Compliance Center
Connect to Security and Compliance Center command.
$Creds = Get-Credential Connect-IPPSSession -Credential $Creds
Connect to SharePoint Online
Connect to Sharepoint Online command.
Module Installation:
Install-Module -Name Microsoft.Online.SharePoint.PowerShell
Connect to SharePoint Online
$Creds = Get-Credential $orgName = “TenantName” Connect-SPOService -Url “https://$orgName-admin.sharepoint.com” -Credential $Creds
Connect to Microsoft Teams
Connect to Microsoft Teams command.
Module Installation:
Install-Module -Name MicrosoftTeams
Connect to SharePoint Online
$Creds = Get-Credential Connect-MicrosoftTeams -Credential $Creds