Enable or Disable Account in Windows 10  

How to Enable or Disable User Accounts in Windows 10

User accounts help control which files and apps each person can use and what changes they can make to the PC.

If you have a user account that you want to make unavailable without deleting it, you can disable the account. A disabled account can be enabled again later. Disabling an account is different from deleting an account. If you delete an account, it can’t be restored.

When a user account is disabled, it’s name will be removed from the sign-in screen and Start menu switch user areas so that it can no longer be signed in to.

This tutorial will show you how to enable or disable a user account in Windows 10.

You must be signed in as an administrator to be able to enable or disable a user account.

 CONTENTS:

  • Option One: To Enable or Disable User Account in Command Prompt
  • Option Two: To Enable or Disable User Account in Local Users and Groups
  • Option Three: To Hide or Unhide User Account in Registry Editor
  • Option Four: To Enable or Disable User Account in PowerShell

OPTION ONE

To Enable or Disable User Account in Command Prompt

1. Open an elevated command prompt.

2. Do step 3 (disable) or step 4 (enable) below for what you would like to do.

 3. To Disable a User Account
A) Type the appropriate command below in the elevated command prompt, press Enter, and go to step 5 below. (see screenshot below)

(To disable a local account)
Net user "User Name" /active:no

(To disable a domain account)
Net user "User Name" /active:no /domain

Substitute User Name in the command above with the actual user name (ex: "Brink2") of the account you want to disable.

For example: Net user "Brink2" /active:no

 4. To Enable a User Account
This is the default setting.
A) Type the appropriate command below in the elevated command prompt, press Enter, and go to step 5 below. (see screenshot below)

(To disable a local account)
Net user "User Name" /active:yes

(To disable a domain account)
Net user "User Name" /active:yes /domain

Substitute User Name in the command above with the actual user name (ex: "Brink2") of the account you want to enable.

For example: Net user "Brink2" /active:yes

5. You can now close the elevated command prompt if you like.

OPTION TWO

To Enable or Disable User Account in Local Users and Groups

The Local Users and Groups is only available in the Windows 10 Pro, Enterprise, and Education editions.
1. Press the Win+R keys to open the Run dialog, type lusrmgr.msc, and click/tap on OK to open Local Users and Groups.

2. Click/tap on Users in the left pane, and double click/tap on the Name (ex: Brink2) of the user account you want to enable or disable. (see screenshot below)

3. Check (disable) or uncheck (enable (default)) the Account is disabled box for what you want, and click/tap on OK. (see screenshot below)

4. You can now close Local Users and Groups if you like.

OPTION THREE

To Hide or Unhide User Account in Registry Editor

If you hide an account using this option, the account’s details will not show it as being disabled, but this will still have the same affect as being disabled.
1. Press the Win+R keys to open the Run dialog, type regedit, and click/tap on OK to open Registry Editor.

2. Browse to the key location below in the left pane of Registry Editor. (see screenshot below)
HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionWinlogonSpecialAccountsUserList

If you do not have the SpecialAccounts key, then right click on the Winlogon key, click/tap on New, click/tap on Key, type SpecialAccounts, and press Enter.

If you do not have the UserList key, then right click on the SpecialAccounts key, click/tap on New, click/tap on Key, type UserList, and press Enter.


3. Do step 4 (hide) or step 5 (unhide) below for what you would like to do.

 4. To Hide a User Account
A) Right click on an empty space in the right pane of the UserList key, click/tap on New, and click/tap on DWORD (32-bit) Value. (see screenshot below step 2)

B) Type the name (ex: Brink2) of the user account you want to hide for the name of the DWORD, press Enter, and go to step 6 below. (see screenshot below step 2)

If needed, you can type net users in a command prompt and press Enter to see a list of all user account names on your PC.

 5. To Unhide a User Account
This is the default setting.
A) In the right pane of the UserList key, right click on the name (ex: Brink2) of the user account you want to unhide, and click/tap on Delete. (see screenshot below step 2)

B) Click/tap on Yes to confirm, and go to step 6 below. (see screenshot below)


6. You can now close Registry Editor if you like.

OPTION FOUR

To Enable or Disable User Account in PowerShell

For more Disable-LocalUser and Enable-LocalUser command options and details, see:

  • Disable-LocalUser – Microsoft Developer Network
  • Enable-LocalUser – Microsoft Developer Network

1. Open an elevated PowerShell.

2. Do step 3 (disable) or step 4 (enable) below for what you would like to do.

 3. To Disable a User Account
A) Type the command below into the elevated PowerShell, press Enter, and go to step 5 below. (see screenshot below)

Disable-LocalUser -Name "UserName"

Substitute UserName in the command above with the actual user name (ex: "Brink2") of the account you want to disable.

For example: Disable-LocalUser -Name "Brink2"

 4. To Enable a User Account
This is the default setting.
A) Type the command below into the elevated PowerShell, press Enter, and go to step 5 below. (see screenshot below)

Enable-LocalUser -Name "UserName"

Substitute UserName in the command above with the actual user name (ex: "Brink2") of the account you want to enable.

For example: Enable-LocalUser -Name "Brink2"


4. When finished, you can close the elevated PowerShell if you like.

That’s it,
Shawn

Leave a Reply