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

Поділитися
Вставка
  • Опубліковано 7 вер 2024
  • 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

КОМЕНТАРІ • 16

  • @IlArnaxlI
    @IlArnaxlI 7 місяців тому +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

  • @ComsicQuestGG
    @ComsicQuestGG Рік тому +1

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

  • @figureitoutpunk
    @figureitoutpunk Рік тому +1

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

  • @bhanusv4256
    @bhanusv4256 2 роки тому +2

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

  • @Dzflaree
    @Dzflaree 11 місяців тому

    so clean and simple AND handsome

  • @wendelljones513
    @wendelljones513 Рік тому +1

    Very helpful video. Thank you

  • @hardikak
    @hardikak Рік тому +1

    Very helpful, thanks for the video!

  • @stanleyngugi1675
    @stanleyngugi1675 2 роки тому +1

    Very informative, thank you.!

  • @neftalirivera1969
    @neftalirivera1969 Рік тому +1

    excelenttt!!!! thank you

  • @thbadmin7751
    @thbadmin7751 2 роки тому +1

    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.

  • @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 !!!