How to Enable or Disable a User Account on Windows 11 or 10?

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 Start button and select Computer Management.

Computer-Management-in-WindowsX-MenuStep 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

Computer-Management-Users-1024x735Step 3. Now, right-click the user name you want to disable and select the Properties option.

User-Properties-1024x735Step 4. Then, switch to the General tab in the next window.

User-Properties-Account-is-disabledStep 5. After that, check or uncheck the Account is disabled option to disable or enable the selected account.

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 Enter key from the keyboard to view the available user accounts on your computer:-

net user

Disable-User-Account-through-Command-Prompt-1024x568Step 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 Enter to display the available accounts:-

Get-LocalUser

Disable-User-Account-using-PowerShell-1024x660Step 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.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: