Share via

Blocked Users

Anonymous
2015-07-15T13:35:53+00:00

I want a list or report of all my blocked users and export to csv.   Is this Possible

Microsoft 365 and Office | Subscription, account, billing | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2015-07-18T04:28:17+00:00

Hi Armandos,

Have you referred to the information above? Could you share any updates?

Regards,

Allan

Was this answer helpful?

2 people found this answer helpful.
0 comments No comments

Answer accepted by question author

Anonymous
2015-07-15T14:29:11+00:00

Hi Armandos,

If the “blocked users” means sign-in blocked users, I suggest you run a PowerShell cmdlet to export them to a CSV file. Below are the detailed steps for your reference:

  1. Install the Azure AD Module.
  2. Run Windows Azure Active Directory Module for Windows PowerShell as administrator.
  3. Run Connect-MsolService and enter your admin credentials.
  4. Run the following command to export the sign-in blocked users to C:\Test\BlockedUsers.csv:

Get-MsolUser | where {$_.blockcredential -eq $true} | select UserPrincipalName,DisplayName,isLicensed | Export-CsvC:\Test\BlockedUsers.csv –NoTypeInformation

Please let me know whether this works from your side. If it doesn’t match your situation, please describe your requirement in more detail and we’ll follow up and assist you further.

Thanks,

Lingyu Sun

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2015-07-18T08:33:51+00:00

    Work very good. Thanks

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments