Enable Administrator account in Windows 10, 8 & Windows 7 OS from Command Prompt.

Last updated on December 12th, 2017

Microsoft’s last two operating systems Windows 8 and Windows 7 are shipped with an Administrator account that is disabled by default. This has been done for security reasons (e.g. some virus and malicious programs use the Administrator account to infect your computer). 

The best practice according to my experience is to create another account with Administrative rights and leave the Administrator account disabled. But, in some cases, we need to enable the Administrator account, because some tasks require Administrative privileges to be executed. In this tutorial, I will show you how to enable the Administrator account for such cases.

This tutorial contains detailed instructions on how to Enable or Disable the hidden Administrator account in Windows 10, 8.1, 8, 7 & Vista OS.

How to Enable OR Disable Administrator Account from Command Prompt.

Requirements: In order to apply the steps below, you have to sign in to Windows using  an account with Administrative privileges. If you cannot do that, then follow the steps mentioned on the following tutorials:

Step 1: Run “command prompt” with Administrative privileges.

Windows 7.

To run Command Prompt in administrative mode in Windows 7 operating system go to:

1. Start > All Programs > Accessories.
2. Right click on Command Prompt and choose Run as administrator.
Proceed to Step 2.



Windows 10, 8/8.1 or 7 OS.

To run Command Prompt in administrative mode in Windows 10, 8.1 or 8 operating system:

1. In the Search box type: cmd (or command prompt).
2. Right click on the command prompt (result) and select Run as Administrator.

run command prompt as administrator

Step 2: Enable the Administrator Account.

How to enable the administrator account from command prompt in Windows 10,8 or 7 OS:

1. Inside the command prompt window, type the following command and press Enter:

  • net user administrator /active:yes 

Enable Administrator account

2. After that you should view a message that says that your command was completed successfully.


3. Close the Command prompt window and from now on, the “Administrator” account is Enabled on your computer.*

* If you cannot enable the Administrator account using this method then read this article on how to enable Administrator account using an offline method.

Advice: For you security, don’t forget to specify a password* for the Administrator account after you have enable it. (To specify a user password in Windows 7 or 8 go to: Control Panel > User Accounts options)

How to Disable Administrator account in Windows 10, 8 or 7 OS from Command Prompt:

If you don’t want to log in with the Administrator account in the future, you can disable it by following the same steps, but at the command prompt (Admin) window give the following command instead:

  • net user administrator /active:no

disable Administrator account

That's it! Let me know if this guide has helped you by leaving your comment about your experience. Please like and share this guide to help others.







If this article was useful for you, please consider supporting us by making a donation. Even $1 can a make a huge difference for us in our effort to continue to help others while keeping this site free: