365tips.be

Blogs about: Microsoft Teams, backgrounds, Intune, OneDrive, Exchange, Azure AD, Windows 10, Security, Tenant, Exchange, best-practice, tips & tricks

๐Ÿ—๏ธ How to install the new Exchange Online  PowerShell  V2 module?

The new Exchange Online PowerShell V2 Module has the ability to log in (authenticate) to Exchange Online with MFA. Very practical so you can get rid of the old way described here.

What is new in the PowerShell V2 module?

New cmdlet in the EXO V2 moduleOlder related cmdlet
Connect-ExchangeOnlineConnect-EXOPSSession
or
New-PSSession
Get-EXOMailboxGet-Mailbox
Get-EXORecipientGet-Recipient
Get-EXOCASMailboxGet-CASMailbox
Get-EXOMailboxPermissionGet-MailboxPermission
Get-EXORecipientPermissionGet-RecipientPermission
Get-EXOMailboxStatisticsGet-MailboxStatistics
Get-EXOMailboxFolderStatisticsGet-MailboxFolderStatistics
Get-EXOMailboxFolderPermissionGet-MailboxFolderPermission
Get-EXOMobileDeviceStatisticsGet-MobileDeviceStatistics

How to install the V2 module via PowerShell?

Open PowerShell as administrator in Windows.

1

Start the following commandlets

Install-Module PowershellGet -Force
Update-Module PowershellGet
Set-ExecutionPolicy RemoteSigned
Install-Module -Name ExchangeOnlineManagement 
1

Update the exchange online management module

Import-Module ExchangeOnlineManagement; Get-Module ExchangeOnlineManagement 
1

Start your connection to Exchange Online

1
Connect-ExchangeOnline

Example command...

Get-EXOCasMailbox

Why use this V2 module?

If you use the above module, you no longer need to use the old one to log on to Exchange Online with Multi-Factor Authentication.

Please note! CMDlets have been changed! This will most likely have an impact on scripts.

Also read: Tutorial: How to create and manage Microsoft Teams via PowerShell?

Other Exchange blogs:

Setting up Out of Office on a Office 365 Shared Mailbox
Retrieve deleted Exchange e-mails - New Exchange Portal
Set up forwarding in Office 365 | Forward e-mails
Remove Azure AD Connect and make all objects cloud managed
Automatically store sent items in your shared mailbox
Add an email alias in Office 365, Exchange or Active-Directory

About the author

Tagged: , , , , , , ,
5 3 votes
Product review
Subscribe
Please let us know if there are
guest

2 Responses
Oldest
Latest Most Voted
Inline feedbacks
See all comments
Reinout Depoorter
Reinout Depoorter
1 year ago

winrm basic auth must be enabled to use modern authentication. How do they come up with it!

wpdiscuz ย  wpDiscuz
2
0
Would love to know your thoughts, please leave a comment.x
%d bloggers liked this: