Connect to exchange online

Connect to exchange online

Install exchange online management

Install-Module -Name ExchangeOnlineManagement
——————————————-
Import-Module ExchangeOnlineManagement
Set-ExecutionPolicy RemoteSigned
$UserCredential = Get-Credential

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

////////////////////////////////////////////////////////////////////////////
Import-PSSession $Session -DisableNameChecking

More Details: https://docs.microsoft.com/en-us/powershell/exchange/connect-to-exchange-online-protection-powershell?view=exchange-ps

Leave a Reply

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