Windows 10: Enable or Disable Account in Windows 10  

    Enable or Disable Account in Windows 10

    Enable or Disable Account in Windows 10

    How to Enable or Disable User Accounts in Windows 10
    Published by Category: User Accounts
    18 Jun 2018
    Designer Media Ltd

    Published by


    Brink's Avatar
    Administrator

    Posts: 30,589

    Show Printable Version 


    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





    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

    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: 28664
Size:  13.7 KB


     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

    Name:  Enable_account_command-1.png
Views: 28538
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


    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)

    Click image for larger version. 

Name:	Enable-Disable_account_lusrmgr-1.png 
Views:	528 
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: 32579
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


    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

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

    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:	347 
Size:	16.9 KB 
ID:	81434


     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)

    Name:  Enable-Disable_account_registry-2.png
Views: 32548
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

    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"

    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: 21008
Size:  10.9 KB


     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"

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

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


    That's it,
    Shawn


  1.    4 Weeks Ago #1

    I used net user Administrator / active:no to hide the super user. If I restart the computer it correctly only shows my account on the logon screen. But if I then sign out, rather than logoff, the administrator account shows as a choice. It does not let me in though. It shouldn't be showing at all, right?

    Sorry I had it backwards. The switch user is OK. It's the restart after shutdown that shows the super admin choice, even though the password is not accepted.
    Last edited by Dirty Butter; 4 Weeks Ago at 19:31.
      My ComputerSystem Spec


  2. Posts : 30,589
    64-bit Windows 10 Pro build 17713
    Thread Starter
       4 Weeks Ago #2

    Hello Dirty Butter,

    Were you able to disable the built-in Administrator to have it no longer show?

    Enable or Disable Elevated Administrator account in Windows 10 | Windows 10 Tutorials
      My ComputersSystem Spec

  3.    4 Weeks Ago #3

    I was not able to get rid of being asked for the nonexistent password to the Administrator account. But I could click in the left corner and get access to my account. I got around it by activating the Administrator account again and turning off the requirement to login each time I input my password there in netplwiz. When I restarted the computer it went straight to my account. I then used net user Administrator /active:no to hide the super user account.
      My ComputerSystem Spec


  4. Posts : 30,589
    64-bit Windows 10 Pro build 17713
    Thread Starter
       4 Weeks Ago #4

    Great news.
      My ComputersSystem Spec


 

Tutorial Categories

Enable or Disable Account in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Xbox Windows Phone


Related Threads
How to Enable or Disable Built-in Elevated Administrator Account in Windows 10 This tutorial will show you how to enable or disable the hidden built-in elevated Administrator account in Windows 10. You must be signed in as an administrator...
Performance & Maintenance Enable or Disable Hibernate in Windows 10 in Tutorials
How to Enable or Disable Hibernate in Windows 10 Hibernate is a power-saving state designed primarily for laptops, and might not be available for all PCs (PCs with InstantGo don't have the hibernate option). While sleep puts your work and...
Apps & Features Enable or Disable Cortana in Windows 10 in Tutorials
How to Enable or Disable Cortana in Windows 10 Cortana is your cloud-based personal assistant that works across your devices and other Microsoft services. Depending on the capabilities of your device and the version of Cortana you’re using,...
How to Enable or Disable Projecting to this PC in Windows 10 The Projecting to this PC feature uses the Connect app to allow you to wirelessly connect a Windows Phone or PC to your PC's screen, and use its keyboard, mouse, and other devices too....
How to Enable or Disable Pinning Store app to Taskbar in Windows 8 and Windows 10 The Microsoft Store app in Windows 10 offers various apps, games, music, movies & TV, and books that users can browse through, purchase, or get for free to...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 09:54.
Find Us