Error Connecting to Exchange Online PowerShell with MFA enabled.

1
55
views

Error Connecting to Exchange Online PowerShell with MFA enabled.

When you try to connect to Exchange Online using PowerShell you receive the following error.

The Cause for this is:

This issue occurs if either an internal firewall or the Windows Remote Management service has not been started.

Solution is:

To resolve this issue, check whether the Windows Remote Management service is installed and has started. To do this, follow these steps:

  1. Do one of the following:
    • In Windows 8, press the Windows logo key+R to open the Run dialog box, type services.msc, and then press Enter.
    • In Windows 7 or Windows Vista, click Start, type services.msc in the Start search field, and then press Enter.
    • In Windows XP, click Start, click Run, type services.msc, and then press Enter.
  2. In the Services window, double-click Windows Remote Management.
  3. Set the startup type to Manual, and then click OK.
  4. Right-click the service, and then click Start.
  5. Let the service start.Note If the service was already started but it’s not responding, you may have to click Restart.
  6. Try to connect to Exchange Online again.

However, the solution on top does work for all, so I went and did some more digging and found the below on a Microsoft Forum.

As mentioned above the feature is still in preview and subject to change and is not officially supported since it is a beta.

For everyone facing the same issue I hope there is a permanent fix soon.

Reference:

#ThatLazyAdmin

Sharing is caring!

Previous articleCreating Office 365 Groups with PowerShell
Next articleConditional Access for Office 365 Apps
About Me ? I Guess i would start by saying i am a family guys and full time SysAdmin and Tech Junky. This Blog is my first attempt to share information about daily issues i come across as a SysAdmin as well as some new deployments i am part of. Topics that i will cover will mostly be about Office 365,Windows,Exchange as well as Active Directory. I hope some of my Blog posts helps someone #LiveLongAndBeLazy #Exchange #Office 365 #ActiveDirectory #Hyper-V
SHARE

1 COMMENT

  1. Just want to say your article is as surprising.
    The clearness in your post is simply excellent and i could suppose you are an expert in this subject.

    Fine along with your permission let me to clutch your RSS feed to keep up to date with impending
    post. Thanks one million and please carry on the gratifying work.

LEAVE A REPLY

Please enter your comment!
Please enter your name here