Aug 29 2017
07:01 AM
- last edited on
Jan 14 2022
05:35 PM
by
TechCommunityAP
Aug 29 2017
07:01 AM
- last edited on
Jan 14 2022
05:35 PM
by
TechCommunityAP
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
Aug 29 2017 08:19 PM
Some things to consider:
If you choose option 3, the equivlant starting point would be:
Get-AzureADUser -top 10000 | select displayname | measure-object
Or get ALL:
Get-AzureADUser -all $true | select displayname | measure-object