Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade

How to Block and Unblock User Accounts using CMD in Windows

In this article, we will explore how to block and unblock user accounts using the Command Prompt (CMD) in the Windows operating system. Managing user accounts is an essential task for system administrators, as it allows them to control access and ensure the security of the system. By understanding the commands and techniques involved in blocking and unblocking user accounts, readers will be equipped with the knowledge to effectively manage user accounts in a Windows environment.


Examples:
1. Blocking a User Account:



  • Open the Command Prompt by pressing the Windows key + R, typing "cmd" and pressing Enter.

  • To block a user account, use the following command: "net user [username] /active:no". Replace [username] with the name of the account you want to block.

  • Press Enter to execute the command. The user account will be blocked, and the user will no longer be able to log in.


2. Unlocking a User Account:



  • Open the Command Prompt.

  • To unblock a user account, use the following command: "net user [username] /active:yes". Replace [username] with the name of the account you want to unblock.

  • Press Enter to execute the command. The user account will be unblocked, and the user will be able to log in again.


To share Download PDF