Install Exchange Online Powershell Module, How To Install Exchange Online Powershell V2 Module?

Install Exchange Online Powershell Module: Exchange Online Powershell Module enables the system administrator to update existing objects, retrieve data, configure exchange online features. Read further to know the steps to Install Exchange Online Powershell Module.

by Pooja | Updated Oct 22, 2021

Source: it-koehler-blog

Install Exchange Online Powershell Module

The system administrators use PowerShell to administer and audit their Office 365 environment. If you're a system administrator you may have known that Microsoft will deprecate Basic Authentication in Exchange Online by 2021. If you are puzzled about how to Install Exchange Online Powershell V2 Module, this post will help you with step by step process on How To Install Exchange Online Powershell V2 Module:

Open Windows PowerShell with the “Run as administrator” option.

Ensure that you are using PowerShellGet 2.0 or the latest version before installing the ExchangeOnlineManagement module to avoid any glitch.

Close and reopen the console with admin privilege to install PowerShellGet module elevated.

You can see new cmdlets in the module after the completion of the EXO V2 module installation. Now you can create a session to Exchange Online environment where you will also have older remote PowerShell cmdlets. 

How To Install Exchange Online Powershell V2 Module?

The first step is to download the Remote PowerShell module for Exchange Online.

Use this simple link to obtain the Exchange Online PowerShell Module: https://cmdletpswmodule.blob.core.windows. net/exopsmodule/Microsoft.Online.CSE. PSModule.Client.application

Follow the instructions below to obtain the Exchange Online MFA module from Microsoft instead.

1. Use Internet Explorer or Edge to access the Exchange Admin Center.

2. Go to Hybrid in the EAC and click the Configure button to download the Exchange Online PowerShell Module for MFA. 

Note: If you don't use a browser that uses ClickOnce to download (like IE or Edge), you'll get an error during installation.

For further troubleshooting advice, go to Connect-ExoPSSession troubleshooting hints.

3. Click the Install button.

Connect-EXOPSSession is a command that is used to connect to Exchange Online using MFA

Using MFA, connect Exchange Online PowerShell

Connect-EXOPSSession is not available in ordinary Windows PowerShell.

The Remote PowerShell module for Exchange Online must be launched.

Usage advice appears when you launch the Exchange Online Remote PowerShell module.

2.UserPrincipalName is a parameter in Connect-EXOPSSession.

Connect-EXOPSSession can be used with or without UserPrincipalName. 3. Click Sign in and sign in with your credentials.

4. A verification code is generated and sent to you based on the MFA settings you've set up for your account.

Click Sign in after entering the verification code in the verification window.

5. The Exchange Online cmdlets are imported into the remote PowerShell Module session after step 4.

If you don't get any errors, you've successfully connected.

EXO V2 Cmdlets and Their Equivalent Older Cmdlets

Old Cmdlets  EXO V2 Cmdlets 
Get-Mailbox    Get-EXOMailbox   
Get-MailboxFolderPermission  Get-EXOMailboxFolderPermission 
Get-CASMailbox  Get-EXOCASMailbox 
Get-MailboxFolderStatistics    Get-EXOMailboxFolderStatistics   
Get-MailboxPermission            Get-EXOMailboxPermission          
Get-MobileDeviceStatistics  Get-EXOMobileDeviceStatistics 
Get-Recipient  Get-EXORecipient 
Get-RecipientPermission  Get-EXORecipientPermission
  • Install Exchange Online Powershell V2 Module

  • Exchange Online Powershell Module Download

  • Install Exchange Online Powershell V2 Module

  • How To Install Exchange Online Powershell V2 Module

  • How To Download Exchange Online Powershell V2 Module


Disclaimer: The above information is for general informational purposes only. All information on the Site is provided in good faith, however we make no representation or warranty of any kind, express or implied, regarding the accuracy, adequacy, validity, reliability, availability or completeness of any information on the Site.

Install Exchange Online Powershell Module - FAQs

1. How do I install Exchange Online PowerShell module?

How to install Exchange online remote powershell for MFA

  1. Click Admin in the app lancher.
  2. Go to Admin center in the left side menu and Click Exchange.
  3. Now Exchange admin center is opened ,then click Hyprid and click Configure buttom in below of Exchange Online Powershell module supports.
2. How do I install a PowerShell V2 module?

To install the EXO V2 module for the first time, complete the following steps:

  1. Install or update the PowerShellGet module as described in Installing PowerShellGet.
  2. Close and re-open the Windows PowerShell window.
  3. Now you can use the Install-Module cmdlet to install the EXO V2 module from the PowerShell Gallery
3. How does MsolService connect to PowerShell?

To connect to the Azure Active Directory Module for Windows PowerShell or MSOnline module, use the Connect-MsolService cmdlet and supply the $M365credentials variable.

4. Where are PowerShell modules stored?

The AllUsers location is $env:PROGRAMFILES\PowerShell\Modules on Windows. On Linux or Mac the modules are stored at /usr/local/share/powershell/Modules .

5. How do I install an exchange module?

In three steps, we can create a remote PowerShell connection to Exchange Server: Enter credentials. Provide required connection settings. Import Exchange cmdlets.

  1. Enter the credentials. PS C:\> $UserCredential = Get-Credential. ...
  2. Provide required connection settings. Replace EX01-2016. ...
  3. Import Exchange cmdlets.
6. How does PowerShell connect to exchange?
  1. On your local computer, open Windows PowerShell, and run the following command: PowerShell Copy. $UserCredential = Get-Credential. ...
  2. Run the following command: PowerShell Copy. Import-PSSession $Session -DisableNameChecking.
7. How do I open Microsoft Exchange Online PowerShell module as administrator?

Go to Start > Windows PowerShell. Right click Windows PowerShell, and hit Run as Administrator to make sure that you can run PowerShell commands without restrictions.

Related Articles