Published by


Brink's Avatar
Administrator

Posts: 23,601

Show Printable Version 


How to Enable or Disable User Accounts in Windows 10

information   Information
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






Enable or Disable Account in Windows 10 OPTION ONE Enable or Disable Account in Windows 10
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

Note   Note
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


Name:  Disable_account_command-1.png
Views: 12407
Size:  13.7 KB


 4. To Enable a User Account

NOTE: 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

Note   Note
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


Name:  Enable_account_command-1.png
Views: 12360
Size:  16.2 KB


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






Enable or Disable Account in Windows 10 OPTION TWO Enable or Disable Account in Windows 10
To Enable or Disable User Account in Local Users and Groups

Note   Note
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)

Click image for larger version. 

Name:	Enable-Disable_account_lusrmgr-1.png 
Views:	259 
Size:	36.8 KB 
ID:	81435

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

Name:  Enable-Disable_account_lusrmgr-2.png
Views: 16339
Size:  21.9 KB

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






Enable or Disable Account in Windows 10 OPTION THREE Enable or Disable Account in Windows 10
To Hide or Unhide User Account in Registry Editor

Note   Note
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_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList

Note   Note
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.


Name:  Enable-Disable_account_registry-1.png
Views: 12392
Size:  27.2 KB

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)

Tip   Tip
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.

Click image for larger version. 

Name:	net_user.png 
Views:	171 
Size:	16.9 KB 
ID:	81434



 5. To Unhide a User Account

NOTE: 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)

Name:  Enable-Disable_account_registry-2.png
Views: 16348
Size:  6.7 KB

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





Enable or Disable Account in Windows 10 OPTION FOUR Enable or Disable Account in Windows 10
To Enable or Disable User Account in PowerShell

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


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"

Note   Note
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"

Name:  Disable_account_in_PowerShell.png
Views: 4730
Size:  10.9 KB


 4. To Enable a User Account

NOTE: 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"

Note   Note
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"

Name:  Enable_account_in_PowerShell.png
Views: 4713
Size:  10.8 KB

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


That's it,
Shawn