If you have an unnecessary account on your computer, you can delete or disable it. Also If you delete it - then all data from it will be lost and it can not be restored. If you disable an account, you can enable it in the future without losing any data. A disabled account disappears from the login screen and from switching to the Start menu. In today's article we will look at various ways to disable (enable) an account in Windows 10. To disable user accounts, the user under which you are logged in must have administrator rights.
1. Enable or Disable an Account on the Command Line
Net user "account name" / active: noreplacing the highlighted red with your own and press the Enter key. For example, we need to disable the Sa account - the command to enter will look like this:
Net user "Sa" / active: no
Net user "username" / active: no / domain
Net user "account name" / active: yesreplacing the highlighted red with your own and press the Enter key. For example, we need to enable the account Sa - the command for input will look like this:
Net user "Sa" / active: yes
Net user "username" / active: yes / domainAfter the caption "Command completed successfully" you can close the command line.
2. Enable or Disable an Account in Local Users and Groups
The Local Users and Groups tool is available only in Windows 10 Pro, Enterprise, and Education.
lusrmgr.mscand press Enter.
3. Hide Account in Registry Editor
After completing the instructions below, you will not see a hidden account on the login screen and in the switching of the Start menu, but the account will appear as enabled in the Local Users and Groups.
Before editing the registry, it is recommended to create a system restore point.
regeditcommand and press the Enter key.
Also consider using Action1 to disable the local account if: