Forum Discussion
Manidurai Mohanamariappan
Aug 29, 2017Iron Contributor
Get-msoluser :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...
Clifford Kennedy
Aug 30, 2017Iron Contributor
Some things to consider:
- Are you running through proxy - this can lead to some timeout issues
- Ensure you are running the latest Microsoft Azure Active Directory Module for Windows PowerShell
- Move to the newer Azure Active Directory V2 PowerShell module instead of this module
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