To install the latest public version of the module, run the following command

Set-ExecutionPolicy RemoteSigned
Install-Module -Name ExchangeOnlineManagement

To Connect to Exchange Online with Powershell using modern authetication

Import-Module ExchangeOnlineManagement
Connect-ExchangeOnline
Disconnect-ExchangeOnline
Kategorier: Guides