You can easily create multiple user accounts on Windows 11/10 if you want to share your computer with your family or friends. Moreover, if a user account is no longer required or you wish to restrict access to a user, in that case, disable that account so that settings and personal files of that account will be preserved on your PC instead of deleting that account.
Whenever you want, you can restore the user account to gain access to the system so that the user can continue working from where he left off whenever you want.
There are several ways to disable/enable a user account in Windows 11/10, including Computer Management, Command Prompt, and PowerShell.
When you disable a user account on your Windows 11/10 computer, access to the account is revoked, and the account will be removed from the user menu in the Start menu and the sign-in screen.
This risewindows article will guide you on enabling and disabling a User Account on Windows 11/10 through Computer Management, Command Prompt, and PowerShell.
How to Enable or Disable User Account using Computer Management?
Follow the below-mentioned steps to enable or disable user accounts using Computer Management:-
Step 1. You need to open the Computer Management. To do so, right-click on the
Step 2. After that, navigate to the following path in the left sidebar when the Computer Management window appears:-
Computer Management > System Tools > Local Users and Groups > Users
Step 3. Now, right-click the user name you want to disable and select the
Step 4. Then, switch to the
Step 5. After that, check or uncheck the
How to Turn On or Off User Account using Command Prompt?
Follow the below-given steps to disable a user account using Command Prompt:-
Step 1. You need to open the command Prompts with administrative privileges.
Step 2. Next, type the following text and press the
net user
Step 3. Then, type the below-given command and press Enter key from the keyboard to disable the account:-
net user ACCOUNT-NAME /active:no
Note: Please replace “ACCOUNT-NAME” with the account’s name to disable it. For example, we want to disable the user account GuestAccount so that the command will be:-
net user GuestAccount /active:no
You need to execute the following command to enable the disabled account:-
net user ACCOUNT-NAME /active:yes
How to Enable or Disable User Accounts using Windows PowerShell?
Use the below-given steps to disable a user account using PowerShell:-
Step 1. You need to open PowerShell with administrative privileges.
Step 2. Now, you need to type the below-given command, and press
Get-LocalUser
Step 3. Then, type the following command and press Enter key from the keyboard to disable the user account:-
Disable-LocalUser -Name "ACCOUNT-NAME"
Note: Please replace “ACCOUNT-NAME” with the account’s name to disable it. For example, we want to disable the user account GuestAccount so that the command will be:-
Disable-LocalUser -Name “GuestAccount”
You will need to execute the below-given command to enable the user account:-
Enable-LocalUser -Name "ACCOUNT-NAME"
That’s all. Thanks for reading.