Forum Discussion
Manidurai Mohanamariappan
Aug 29, 2017Iron Contributor
The socket connection was aborted
When i run following command in powershell
get-msoluser -MaxResults 10000 |select displayname |Measure-Object"
i got following issue
The socket connection was aborted. This could be caused by an error processing
your message or a receive timeout being exceeded by the remote host, or an underlying network
resource issue. Local socket timeout was '00:00:59.9220000'.
At line:1 char:1
+ get-msoluser -MaxResults 10000 |select displayname |Measure-Object
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [Get-MsolUser], CommunicationException
+ FullyQualifiedErrorId : System.ServiceModel.CommunicationException,Microsoft.Online.Admin
istration.Automation.GetUser
can anyone help me to overcome this problem
Try it from another machine perhaps. I think the error is pretty explanatory.
Not sure why you are using measure-object along with -maxresults though since the count wont exceed 10,000 regardless.
- Manidurai MohanamariappanIron Contributorwe are facing this error from our customer environment and i also check in other machine but i got same issue
FYI It is working fine in my environment