How to connect to Exchange Online by PowerShell?

$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session
Categories: Exchange, Office365, PowerShell

Leave a Reply

Your email address will not be published. Required fields are marked *