Get-EXO cmdlets all cause errors.
When connecting to Exchange Online and running an EXO command I am seeing some strange errors which cause the connection to Exchange online to fail.
connect-exchangeonline
—————————————————————————————-
This V3 EXO PowerShell module contains new REST API backed Exchange Online cmdlets which d
oesn’t require WinRM for Client-Server communication. You can now run these cmdlets after
turning off WinRM Basic Auth in your client machine thus making it more secure.
Unlike the EXO* prefixed cmdlets, the cmdlets in this module support full functional parit
y with the RPS (V1) cmdlets.
V3 cmdlets in the downloaded module are resilient to transient failures, handling retries
and throttling errors inherently.
REST backed EOP and SCC cmdlets are also available in the V3 module. Similar to EXO, the c
mdlets can be run without WinRM basic auth enabled.
For more information check https://aka.ms/exov3-module
—————————————————————————————-
Get-EXOMailbox (email address removed)
Get-EXOMailbox : The underlying connection was closed: An unexpected error occurred on a
receive.
At line:1 char:1
+ Get-EXOMailbox email address removed for privacy reasons
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ProtocolError: (:) [Get-EXOMailbox], DataServiceTransportE
xception
+ FullyQualifiedErrorId : The underlying connection was closed: An unexpected error
occurred on a receive.,Microsoft.Exchange.Management.RestApiClient.GetExoMailbox
Now I need to open a new powershell window and reconnect. I try to run a diffrent command:
Get-EXOMailboxStatistics (email address removed)
Get-EXOMailboxStatistics : 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.
Parameter name: sslProtocolType.
At line:1 char:1
+ Get-EXOMailboxStatistics email address removed for privacy reasons
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ProtocolError: (:) [Get-EXOMailboxStatistics], Exception
+ FullyQualifiedErrorId : One or more errors occurred.,Microsoft.Exchange.Management
.RestApiClient.GetExoMailboxStatistics
There was a suggestion in a diffrent form to connect to security and compliance first.. That did not work.
Any ideas?
When connecting to Exchange Online and running an EXO command I am seeing some strange errors which cause the connection to Exchange online to fail. connect-exchangeonline—————————————————————————————-This V3 EXO PowerShell module contains new REST API backed Exchange Online cmdlets which doesn’t require WinRM for Client-Server communication. You can now run these cmdlets afterturning off WinRM Basic Auth in your client machine thus making it more secure.Unlike the EXO* prefixed cmdlets, the cmdlets in this module support full functional parity with the RPS (V1) cmdlets.V3 cmdlets in the downloaded module are resilient to transient failures, handling retriesand throttling errors inherently.REST backed EOP and SCC cmdlets are also available in the V3 module. Similar to EXO, the cmdlets can be run without WinRM basic auth enabled.For more information check https://aka.ms/exov3-module—————————————————————————————-Get-EXOMailbox (email address removed)Get-EXOMailbox : The underlying connection was closed: An unexpected error occurred on areceive.At line:1 char:1+ Get-EXOMailbox email address removed for privacy reasons+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : ProtocolError: (:) [Get-EXOMailbox], DataServiceTransportException+ FullyQualifiedErrorId : The underlying connection was closed: An unexpected erroroccurred on a receive.,Microsoft.Exchange.Management.RestApiClient.GetExoMailbox Now I need to open a new powershell window and reconnect. I try to run a diffrent command: Get-EXOMailboxStatistics (email address removed) Get-EXOMailboxStatistics : The underlying connection was closed: An unexpected erroroccurred on a receive.. The underlying connection was closed: An unexpected erroroccurred on a receive.. The specified value is not valid in the ‘SslProtocolType’enumeration.Parameter name: sslProtocolType.At line:1 char:1+ Get-EXOMailboxStatistics email address removed for privacy reasons+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : ProtocolError: (:) [Get-EXOMailboxStatistics], Exception+ FullyQualifiedErrorId : One or more errors occurred.,Microsoft.Exchange.Management.RestApiClient.GetExoMailboxStatistics There was a suggestion in a diffrent form to connect to security and compliance first.. That did not work. Any ideas? Read More