Forum Discussion

AdamS777's avatar
AdamS777
Copper Contributor
Feb 26, 2023

ExchangeOnline module powershell and hybrid azure ad join

I have a conditionnal access control requiring hybrid azure ad joined device or mfa to access Exchange Online. Device is hybrid azure joined and has Azureadprt : Yes. When I try to connect to exchnage online (3.1.0 version) via powershell i got error that MFA is required. It looks like that  powershell cannot recognize the device as domain joined . 

  • Use the -UserPrincipalName switch when connecting:

    Connect-ExchangeOnline -UserPrincipalName email address removed for privacy reasons
  • Use the -UserPrincipalName switch when connecting:

    Connect-ExchangeOnline -UserPrincipalName email address removed for privacy reasons

Resources