How to Block User Accounts with Office 365 PowerShell?

Blocking access to an Office setup 365 record keeps anybody from utilizing the record to sign in and get to the administrations and information in your Office 365 association.

When you piece access to the record, the client gets the accompanying blunder message when they endeavor to sign in:

 

Get office 365 setup here : office.com/setup

 

How to Block Access to an Individual user Account?

 

Block Access to an Individual user Account:

Set-MsolUser -UserPrincipalName <UPN of user account> -BlockCredential $true

 

Unblock the User Account:

Set-MsolUser -UserPrincipalName <UPN of user account> -BlockCredential $false

 

Check the Blocked Status of a user Account:

Get-MolUser -UserPrincipalName <UPN of user account> | Select DisplayName,BlockCredential

 

For more details, visit : www.office.com/setup

 

Leave a Reply

Your email address will not be published. Required fields are marked *