Get Started With Exchange Online PowerShell V2 Module

In this blog post, we will learn how to get started with the new Exchange Online PowerShell V2 module.

The new module which was released last year and used modern authentication. The module also supports the following Microsoft 365 services:

  • Exchange Online
  • Microsoft 365 Security and Compliance
  • Exchage Online Protection

The module uses the following syntax Get-EXO* to access mailboxes and configuration. For example, you can you Get-EXOMAILBOX compared to GET-MAILBOX in the V1 module.

Install and Connect

To install the stable version of the module on a Windows 10 machine, you will need to run the following command:

install-module -name exchangeonlinemanagement

The above line will install the latest but if you would like to install a preview version, visit the module page and copy the command for the version you are after.

Install-Module -Name ExchangeOnlineManagement -RequiredVersion 2.0.3

To install a preview version, run the following command:

Install-Module -Name ExchangeOnlineManagement -AllowPrerelease

Connect

To connect to Exchange Online, using the the following command.

Connect-ExchangeOnline

Leave a comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.