How to connect to Exchange Online using PowerShell (EXO V2) | #PowerShell #ExchangeOnline #Microsoft

preview_player
Показать описание
Hi everyone,
This video will show how to connect to Exchange Online using modern authentication and it works with or without multi-factor authentication (MFA).
I’m going to use the Exchange Online PowerShell V2 module ( abbreviated as the EXO v2). You can download the EXO V2 module from PowerShell Gallery
You can connect to all Exchange Related PowerShell environments in Microsoft 365 such as Exchange Online PowerShell, Security & Compliance PowerShell, and Standalone Exchange Online Protection (EOP).

PowerShell Gallery:

Copy and Paste the following command to install this module:
Install-Module -Name ExchangeOnlineManagement -RequiredVersion 2.0.5

Step1:
Import-Module ExchangeOnlineManagement

Step2:
Connect-ExchangeOnline -UserPrincipalName

How to get UserPrincipalName (UPN):

Method 1: Use the Office 365 portal.

Sign in to the Office 365 portal as a global admin.
Go to the user's management page.
Find and then select the user.
Note the user name, which is the UPN.

Method 2: Use the Azure portal.

Sign in to the Azure portal as a global admin.
Select the Active Directory extension, and then select your directory.
Go to the user's management page.
Find and then select the user.
Note the user name, which is the UPN.

#powershell #microsoft #techtripchannel #office365 #microsoftexcelonline
Рекомендации по теме
Комментарии
Автор

Very helpful and thanks for including execution policy.

IlArnaxlI
Автор

Great video - the only thing I did not need was the -UserPrincipalName alone was sufficient

simonboyes
Автор

Fantastic video. Definitely do more powershell content, clear, concise and effective to the point. Thank you.

figureitoutpunk
Автор

Thank you so much you just saved me literal hours of work. Now to export a distro members list... yay for me.

ComsicQuestGG
Автор

this video was spot on and very helpful. Thank you!

bhanusv
Автор

after running the command connect-exchange online and using the credentials of the global admin it shows up an error sayng that the connection failed with the following error message: Bad Request

richardreyespacheco
Автор

did this and got an error that no match was found.

JoshuaDay
Автор

wow, that's pretty! Find out how your competition ranks better - Promo'SM !!!

luise