How to connect to Exchange Online using PowerShell (EXO V2) |
ฝัง
- เผยแพร่เมื่อ 7 ม.ค. 2025
- 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:
www.powershell...
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.
Great video - the only thing I did not need was the -UserPrincipalName addition...........Connect-ExchangeOnline alone was sufficient
Fantastic video. Definitely do more powershell content, clear, concise and effective to the point. Thank you.
Thank you so much you just saved me literal hours of work. Now to export a distro members list... yay for me.
this video was spot on and very helpful. Thank you!
Very helpful video. Thank you
Very helpful, thanks for the video!
Very informative, thank you.!
Thank you so much!
so clean and simple AND handsome
excelenttt!!!! thank you
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
Hi,
Make sure the RemotePowerShellEnabled parameter value is set to True.
Thank you!
Here in 2024 Present
did this and got an error that no match was found.
Hi,
Please send me a screenshot to oshin@techtrip.org
I can take a look at it.
wow, that's pretty! Find out how your competition ranks better - Promo'SM !!!