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

ความคิดเห็น •

  • @IlArnaxlI
    @IlArnaxlI 11 หลายเดือนก่อน +1

    Very helpful and thanks for including execution policy.

  • @simonboyes2550
    @simonboyes2550 2 ปีที่แล้ว +2

    Great video - the only thing I did not need was the -UserPrincipalName addition...........Connect-ExchangeOnline alone was sufficient

  • @figureitoutpunk
    @figureitoutpunk 2 ปีที่แล้ว +1

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

  • @TheComsicCurator
    @TheComsicCurator 2 ปีที่แล้ว +1

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

  • @bhanusv4256
    @bhanusv4256 2 ปีที่แล้ว +2

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

  • @wendelljones513
    @wendelljones513 2 ปีที่แล้ว +1

    Very helpful video. Thank you

  • @hardikak
    @hardikak 2 ปีที่แล้ว +1

    Very helpful, thanks for the video!

  • @stanleyngugi1675
    @stanleyngugi1675 2 ปีที่แล้ว +1

    Very informative, thank you.!

  • @4ngarag
    @4ngarag 11 วันที่ผ่านมา

    Thank you so much!

  • @Dzflaree
    @Dzflaree ปีที่แล้ว

    so clean and simple AND handsome

  • @neftalirivera1969
    @neftalirivera1969 2 ปีที่แล้ว +1

    excelenttt!!!! thank you

  • @richardreyespacheco1454
    @richardreyespacheco1454 ปีที่แล้ว +1

    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

    • @TechTripChannel
      @TechTripChannel  ปีที่แล้ว

      Hi,
      Make sure the RemotePowerShellEnabled parameter value is set to True.

  • @thbadmin7751
    @thbadmin7751 2 ปีที่แล้ว +1

    Thank you!

  • @EscudoEduarGamer
    @EscudoEduarGamer 2 หลายเดือนก่อน +1

    Here in 2024 Present

  • @JoshuaDay0550
    @JoshuaDay0550 2 ปีที่แล้ว

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

    • @TechTripChannel
      @TechTripChannel  2 ปีที่แล้ว +1

      Hi,
      Please send me a screenshot to oshin@techtrip.org
      I can take a look at it.

  • @luise3943
    @luise3943 2 ปีที่แล้ว

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