Om verbinding te maken met Exchange online via PowerShell kan je de volgende commando’s gebruiken.
Open PowerShell als ADMINISTRATOR
Set-ExecutionPolicy RemoteSigned
$Credential=Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $Credential -Authentication Basic -AllowRedirection
Import-PSSession $Session
Voor MFA gebruik dit commando: Connect-EXOPSSession -UserPrincipalName YOUR_UPN