When attempting to connect to Exchange Online using the ExchangeOnlineManagement module, users may receive the following error message:
ERROR: [0-0-0-00000000] Error: The underlying connection was closed: An unexpected error occurred on a receive.
The underlying connection was closed: An unexpected error occurred on a receive.
The specified value is not valid in the 'SslProtocolType' enumeration.
The error is related to the SSL protocol being used by the ExchangeOnlineManagement module.
The issue is often caused by an incompatible version of the module. In this case, version 3.7.1 was installed, whereas the required version for the current MNE release is 3.1.0.
Additionally, an outdated or missing Microsoft Graph module may contribute to the problem.
To resolve this issue, follow these steps:
Uninstall the current ExchangeOnlineManagement module:
Run the following command to remove all installed versions:
Uninstall-Module -Name ExchangeOnlineManagement -AllVersions -Force -ErrorAction SilentlyContinue
Install the required version (3.1.0) of the ExchangeOnlineManagement module:
Install-Module -Name ExchangeOnlineManagement -RequiredVersion 3.1.0 -Scope AllUsers -Force
Ensure that the Microsoft Graph SDK is installed:
The required versions are 1.25 or 1.27. Install it using the following command:
Install-Module Microsoft.Graph -RequiredVersion 1.27 -Scope AllUsers -Force
Restart the PowerShell session and attempt the connection again.
If the issue persists after following these steps, further investigation may be required.
© ALL RIGHTS RESERVED. 利用規約 プライバシー Cookie Preference Center