When you try to set probes for IMAP and POP3 by running the Invoke-MonitoringProbe cmdlets in a Microsoft Exchange Server 2013 environment, the commands don't run successfully. Additionally, you receive the following exception:
Exception : System.InvalidOperationException: Unable to initialise TCP Network connection ---> System.Net.Sockets.SocketException: The requested address is not valid in its context 127.0.0.1:0
This issue occurs because the Endpoint property is not handled correctly for the ProbeDefinition type.
To fix this issue, install Cumulative Update 11 for Exchange Server 2013.
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Learn about the terminology that Microsoft uses to describe software updates.