Get all your news in one place.
100’s of premium titles.
One app.
Start reading
Windows Central
Windows Central
Technology
Mauro Huculak

How to disable an account on Windows 11

Computer Management open account properties.

On Windows 11, you can quickly create multiple accounts to share a computer with multiple people. However, when you no longer need an account or need to block access to a user, it's also possible to disable an account instead of deleting it to preserve its settings and files if you have to restore access.

You can perform this task in at least four ways, including using Computer Management, Settings, Command Prompt, and PowerShell. Once the account is disabled, Windows 11 will revoke access and remove it from the user menu in the Start menu and the sign-in screen.

In this how-to guide, I will explain how to disable an account without removing it or deleting its files.

How to disable account from Computer Management

To disable accounts on Windows 11 without removing them, use these steps:

  1. Open Start.
  2. Search for Computer Management and click the top result to open the app.
  3. Navigate the following path: Computer Management > System Tools > Local Users and Groups > Users
  1. Right-click the user and select the Properties option.
(Image credit: Mauro Huculak)
  1. Click the General tab.
  2. Check the "Account is disabled" option.
(Image credit: Mauro Huculak)
  1. Click the Apply button.
  2. Click the OK button.

Once you complete the steps, the user will no longer be able to sign in, but the account will continue to be available in the system until it's removed.

Enable account with Computer Management

To enable an account with Computer Management, use these steps:

  1. Open Start.
  2. Search for Computer Management and click the top result to open the app.
  3. Navigate the following path: Computer Management > System Tools > Local Users and Groups > Users
  1. Right-click the user and select the Properties option.
(Image credit: Mauro Huculak)
  1. Click the General tab.
  2. Clear the "Account is disabled" option.
(Image credit: Mauro Huculak)
  1. Click the Apply button.
  2. Click the OK button.

After you complete the steps, the user will be able to sign in and access the Windows 11 account.

How to disable account from Settings

In the Settings app, you can only disable family members' accounts. You cannot disable Microsoft accounts or local accounts.

To disable a family member account with Settings, use these steps:

  1. Open Settings.
  2. Click on Accounts.
  3. Click the Family page on the right side.
(Image credit: Mauro Huculak)
  1. Select the account and click the "Block sign in" button under the "Your family" section.
(Image credit: Mauro Huculak)
  1. Click the Block button.

Once you complete the steps, the family member will no longer be able to sign in, nor will the account be visible on the sign-in screen.

Enable account with Settings

To enable a family account with Settings, use these steps:

  1. Open Settings.
  2. Click on Accounts.
  3. Click the Family page on the right side.
(Image credit: Mauro Huculak)
  1. Select the account and click the "Allow sign in" button under the "Your family" section.
(Image credit: Mauro Huculak)
  1. Click the "Allow sign in" button.

After you complete the steps, the account will appear again on the sign-in screen, allowing the users to log in normally.

How to disable account from Command Prompt

To disable a local account or Microsoft account with commands on Windows 11, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to view the available accounts and press Enter: net user
  4. Type the following command to disable the Windows 11 account and press Enter: net user ACCOUNT-NAME /active:no

In the command, replace "ACCOUNT-NAME" with the account's name to disable. This example disables the "admin_demo" account on Windows 11: net user demo_user /active:no

(Image credit: Mauro Huculak)

Once you complete the steps, the account will deactivate and not be visible on the sign-in screen. However, the account and data will remain on Windows 11.

Enable account with Command Prompt

To enable an account with Command Prompt, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to disable the Windows 11 account and press Enter: net user ACCOUNT-NAME /active:yes

In the command, replace "ACCOUNT-NAME" with the account's name to enable.This example enables the "admin_demo" account on Windows 11: net user admin_demo /active:yes

(Image credit: Mauro Huculak)

After you complete the steps, the Windows 11 account will enable, and the user will be able to reaccess the desktop and their files.

How to disable account from PowerShell

To disable a Windows 11 account with PowerShell commands, use these steps:

  1. Open Start.
  2. Search for PowerShell, right-click the top result, and select the Run as administrator option.
  3. Type the following command to view the available accounts and press Enter: Get-LocalUser
  4. Type the following command to disable the Windows 11 account and press Enter: Disable-LocalUser -Name "ACCOUNT-NAME"

In the command, replace "ACCOUNT-NAME" with the account's name to disable. This example disables the "admin_demo" account on Windows 11: Disable-LocalUser -Name "demo_user"

(Image credit: Mauro Huculak)

Once you complete the steps, the PowerShell command will disable the account, but the account and files won't be deleted from the system.

Enable account with PowerShell

To enable an account with PowerShell on Windows 11, use these steps:

  1. Open Start.
  2. Search for PowerShell, right-click the top result, and select the Run as administrator option.
  3. Type the following command to disable the Windows 11 account and press Enter: Enable-LocalUser -Name "ACCOUNT-NAME"

In the command, replace "ACCOUNT-NAME" with the account's name to enable.This example enables the "admin_demo" account on Windows 11: Enable-LocalUser -Name "demo_user"

(Image credit: Mauro Huculak)

After you complete the steps, the account will enable again on the system.

More resources

For more helpful articles, coverage, and answers to common questions about Windows 10 and Windows 11, visit the following resources:

Sign up to read this article
Read news from 100’s of titles, curated specifically for you.
Already a member? Sign in here
Related Stories
Top stories on inkl right now
Our Picks
Fourteen days free
Download the app
One app. One membership.
100+ trusted global sources.