Connect to Exchange Online script with modern authentication

In october this year basic authentication for Exchange Online will no longer be available. That is why I’ve written a blog which explain how to use a script with encrypted credentials to connect to Exchange Online via modern authentication.

Prerequisites

You need to have the module “ExchangeOnlineManagement” installed. You can do so by running the following code in an elevated Powershell window:

Exchange Online Script syntax

This is the syntaxt of the script to automatically connect to Exchange Online and export all the roommailboxes to CSV:

If you don’t know how to create an encrypted password you can follow this link: Create Encrypted Passwords

References

Microsoft Doc about the new command

Read about my Exchange Online powershell migration tips

Related Posts

One thought on “Connect to Exchange Online script with modern authentication

Leave a Reply