SOLVED

ExchangeOnline module powershell and hybrid azure ad join

Copper Contributor

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 . 

1 Reply
best response confirmed by AdamS777 (Copper Contributor)
Solution
Use the -UserPrincipalName switch when connecting:

Connect-ExchangeOnline -UserPrincipalName email address removed for privacy reasons
1 best response

Accepted Solutions
best response confirmed by AdamS777 (Copper Contributor)
Solution
Use the -UserPrincipalName switch when connecting:

Connect-ExchangeOnline -UserPrincipalName email address removed for privacy reasons

View solution in original post