How to connect to Exchange Online using Powershell

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $Cred -Authentication Basic -AllowRedirection

Set-ExecutionPolicy -ExecutionPolicy unrestricted

Import-PSSession $Session

Leave a Reply

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