Connect-ExchangeOnline (OAth fun)

CWT 391 Reputation points
2020-12-18T23:59:48.62+00:00

Good evening,

Been going round and round with with this and must be missing something. Seen and read plenty of articles, but the fix is not yet clear to me. I'm hoping for a new nugget of information that might help get me over the hump (more clarity). When I run Connect-ExchangeOnline, it takes me through the pop-ups (credentials) as it should along with the MFA prompt via device. It then presents me with the following error. Any advice or tips from experience would be very appreciated. Can access the O365 portal without issue (MFA etc) and the ExchangeOnlineManagement module is definitely installed.

Command:
Connect-ExchangeOnline

Error:
New-ExoPSSession : Create Powershell Session is failed using OAuth

Thanks much,

CWT

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,208 questions
0 comments No comments
{count} votes

Accepted answer
  1. KyleXu-MSFT 26,211 Reputation points
    2020-12-22T01:31:32.617+00:00

    @CWT

    Check and modify those three steps:
    50222-qa-kyle-09-28-25.png

    Enable basic authentication on your computer.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

5 additional answers

Sort by: Most helpful
  1. CWT 391 Reputation points
    2020-12-23T18:49:58.61+00:00

    KyleXu-MSFT,

    Was able to validate on another system that had winrm Basic true worked without issue. GPO is the culprit on my system as it forces winrm Basic false. Can't thank you enough on this one. I had read about winrm quickconfig and did run that along with making sure the service was running, but I never caught the fact that Basic true was required to work.

    Thanks again :)

    0 comments No comments