Get-CsPowerShellEndPoint the underlying connection was closed: an unexpected error occurred on a send

Jehad Jawad 236 Reputation points
2022-03-16T06:59:22.297+00:00

I am trying to run the hybrid wizard on Skype for Business control panel
After it asks for the User ID and the Password of Office 365 it gives the error
Get-CsPowerShellEndPoint the underlying connection was closed: an unexpected error occurred on a send

183602-the-error.png

I opened a PowerShell and I have used the following command to enable TLS 1.2, but I am still getting the same error:
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12;

Could you please help with how to solve this?

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,302 questions
{count} votes

Your answer

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