How to Enable the Local Administrator Account on Windows 7 Using the Command Line

Open CMD as administrator.
Open CMD as administrator.

Using the Command Line

By default, the administrator account on Windows 7, like Windows Vista, is deactivated. This may seem like a good option, however, there are situations when you will need to access the local Administrator account.

Here is how you can enable it using the command line. This is probably the easiest method.

Note: you must have administrator privileges to enable the account. Also associate a password to the account as soon as you activate it.

  • Login to a created user account. Then click on the Start button and type CMD in the search bar.

  • In the command line type “net user” (without quotations) and enter. This should display a list of accounts on the local computer. There may be several, depending on the vendor who sold you the machine but you should look out for the Administrator account.

Check available accounts.
Check available accounts.
  • Once you’ve seen the available accounts that can be activated, type “net user Administrator /enable:yes” and enter.

Enable the account.
Enable the account.
  • A message should appear saying “The command completed successfully.”

    If so then congratulations, you’ve just enabled the hidden administrator account. However, if it doesn’t then you may have skipped a step.

Mission complete.
Mission complete.

More by this Author


Comments 4 comments

CaptainsCritical 4 years ago

Is there still a way to activate it without Admin Privileges??


bernard.sinai profile image

bernard.sinai 4 years ago from Papua New Guinea Author

@CaptainCritical: Not that I know of. The administrator privilege is an inbuilt security feature of Windows so any changes to the system must have this right. However, if an account with admin privileges does not have a password then you might be able to enable the hidden admin account without entering a password.


FrankM 4 years ago

Once you have activated the administrator account and a password for it and then de-activated it (using net user administrator /active:no), how do you re-activate it (since you cannot log into the administrator account)?


bernard.sinai profile image

bernard.sinai 4 years ago from Papua New Guinea Author

Login using another account on the computer and follow the steps provided.

    Sign in or sign up and post using a HubPages Network account.

    0 of 8192 characters used
    Post Comment

    No HTML is allowed in comments, but URLs will be hyperlinked. Comments are not for promoting your articles or other sites.


    Click to Rate This Article
    working