How to remove administrator account in windows 10 using command prompt

on February 17, 2020, 9:51 AM PST

How to enable and disable the Administrator account in Windows 10

Sometimes you need to use the built-in Windows 10 Administrator account: here's how.

We may be compensated by vendors who appear on this page through methods such as affiliate links or sponsored partnerships. This may influence how and where their products appear on our site, but vendors cannot pay to influence the content of our reviews. For more info, visit our Terms of Use page.
How to remove administrator account in windows 10 using command prompt

Image: Nate Ralph/CNET

Windows 10 includes a built-in Administrator account that, by default, is hidden and disabled for security reasons. Sometimes, you need to perform a bit of Windows management or troubleshooting or make changes to your account that requires administrator access. For these reasons, you can enable the Administrator account and then disable it when you’re finished.

SEE: Windows 10 power tips: Secret shortcuts to your favorite settings (TechRepublic Premium)

How to enable the Windows 10 Administrator account using the command prompt

Enabling the Administrator account using the command prompt is the quickest and easiest method.

    1. Open a command prompt as an administrator by typing cmd in the search field.
    2. From the results, right-click the entry for Command Prompt, and select Run as Administrator.
    3. At the command prompt, type net user administrator. The value for Account Active should say No (Figure A).

Figure A

How to remove administrator account in windows 10 using command prompt

  1. Type net user administrator /active:yes. You should receive a response that the command completed successfully.
  2. Type net user administrator. The value for Account Active should now say Yes (Figure B).

Figure B

How to remove administrator account in windows 10 using command prompt

How to enable the Windows 10 Administrator account through the user management tool

    1. Open Administrative Tools, either through the Start menu or through Control Panel.
    2. Select the entry for Computer Management, and open the folder for Local Users And Groups. (A quicker way to get here is to type lusrmgr.msc in the Search field.)
    3. Open the folder for Users, and double-click the Administrator account.
    4. Uncheck the option for Account Is Disabled, and click OK or Apply (Figure C).

Figure C

How to remove administrator account in windows 10 using command prompt

  1. Close the User Management window.
  2. With the account enabled, log out.
  3. Go past the Lock screen, and sign in using the Administrator account. No password is required. You can then perform whatever management or troubleshooting you need to accomplish.

SEE: The Internet of Wild Things: Technology and the battle against biodiversity loss and climate change (TechRepublic)

How to disable the Windows 10 Administrator account using the command prompt

When you’ve completed your management or troubleshooting tasks, you’ll want to disable the Administrator account. To do so, follow these steps.

  1. Log out, and then log back in using your own account.
  2. Open a command prompt as an administrator, and type net user administrator to confirm that the account is active.
  3. Type net user administrator /active: no, then type net user administrator again to confirm that the account is now inactive (Figure D).

Figure D

How to remove administrator account in windows 10 using command prompt

How to disable the Windows 10 Administrator account through the user management tool

  1. Return to the Local Users And Groups window, and double-click the Administrator account.
  2. Check the box for Account Is Disabled.
  3. Click OK or Apply, and close the User Management window (Figure E).

Figure E

How to remove administrator account in windows 10 using command prompt

Also See

  • Can't activate Windows 10? Microsoft adds troubleshooter to resolve common complaints (TechRepublic)
  • The end of Windows 7: Exit strategies and protection tips (free PDF) (TechRepublic)
  • Windows 10 security: A guide for business leaders (TechRepublic Premium)
  • Windows 10 how to: A free tech support and troubleshooting guide (ZDNet)
  • Windows 10 1909: What do developers need to know? Not much, says Microsoft (ZDNet)
  • 6 simple security changes all Windows 10 users need to make (CNET)
  • How to clear storage space on your PC for Windows 10 updates (TechRepublic)
  • How to use God Mode in Windows 10 (TechRepublic)
  • Get more must-read Microsoft tips and news (TechRepublic on Flipboard)

  • Microsoft
  • Software

How do I delete an Administrator account using CMD?

Open Command Prompt (Admin) with combination keys "Win + X". 2. Type command "net user username /delete" and press Enter to delete the user account. Just type the administrator account name instead of characters "username" and it would be deleted instantly.

How do I delete my Administrator account on Windows 10?

Open MMC, and then select Local Users and Groups. Right-click the Administrator account, and then select Properties. The Administrator Properties window appears. On the General tab, clear the Account is Disabled check box.

How do I remove Administrator account in Windows 10 without admin rights?

Click on “Start”, choose “Settings” -> “Accounts”. Select “Family & other users” from the left category. Then click on the user account you want to delete and click “Remove” button. Now just click “Delete account and data” and the account will be deleted completely.

How do I get rid of built in Administrator account?

Log out, and then log back in using your own account. Open a command prompt as an administrator, and type net user administrator to confirm that the account is active. Type net user administrator /active: no, then type net user administrator again to confirm that the account is now inactive (Figure D).