Blocking users in Powershell

Is there any possibility to block a user in PowerShell so that he cannot log in?

Add comment

Choose authorization option

Log in

If you have an account on CentrumXP this option will be best for you.

Log in
Join community

Our registered users have extra privileges like adding questions, commenting, and voting.

Registration

Answer: 2

You type in Set-MsolUser -UserPrincipalName user_email_address and then add -BlockCredential $true

iParanormalx
Added:
3 years ago
Updated:
3 years ago
Correct answer

Ok, everything works now

sleepy10
Added:
3 years ago
Updated:
3 years ago