How to Connect to office 365 Exchange online for the management using Powershell

Set-ExecutionPolicy RemoteSigned -Force

$UserCredential = Get-Credential

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

Import-PSSession $session

 

Leave a Reply

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