Get connection closed by remote host after executing Connect-ExchangeOnline PoweShell

Pradeep Vaishya 20 Reputation points
2024-03-20T06:14:58.3766667+00:00

Hello Team,

 

I've imported the Exchange Online PowerShell module to connect with the Exchange portal for performing Exchange-related activities. However, after MFA (Multi-Factor Authentication), we're encountering the attached response. Could you please assist us with this issue?

User's image

Exchange Online
Exchange Online

A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.

0 comments No comments

Answer accepted by question author
Anonymous
2024-03-20T09:24:38.8966667+00:00

Hi Pradeep Vaishya,

Based on the information you posted the image with, I think this is due to a network issue or a configuration issue, I suggest you follow the steps below to check the cause of the issue:

  1. Make sure your PowerShell environment is updated to the latest version.
  2. Ensure that you are using an Exchange Online PowerShell module that supports MFA, such as using the Connect-ExchangeOnline command.
  3. Check your network connection to ensure that there are no firewalls or network policies blocking the connection.
  4. Try clearing old PowerShell sessions or restarting PowerShell.
  5. Check your authentication policy and permissions to ensure that your account is authorized to perform these actions.
  6. If the problem persists, try connecting using the -Verbose parameter in PowerShell, which may provide additional error messages.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Oldest

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.