≡ Menu

Enable or Disable default administrator account

In Vista and Windows 7,  administrator account is disabled by default. This account can  be enabled by running the following command from elevated administrator command prompt.

net user administrator /active:yes

See How to open elevated command prompt.

Disable administrator account

net user administrator /active:no

Query the status of administrator account

net user administrator

Using WMIC commands

To enable administrator account:

wmic useraccount where name='administrator' set disabled='false'

To disable administrator account:

wmic useraccount where name='administrator' set disabled='true'

In Windows XP, administrator account is not disabled as in Vista and Windows 7. But we can still use the above commands to disable/re-enable administrator account.

3 comments… add one
  • Michael

    This will work if done AS an administrator. If you are not, it will not work!

    • admin

      Yes, that’s the way it should be. Obviously, non admin users should not have control over admin account should be disabled/enabled.
      However, anyone having admin privileges on the computer can disable ‘administrator’ account. For example, if you have an account with the name ‘michael@’ and part of administrators group then you should be able to disable the admin account.

  • heiko

    My computer was inspected by a computer specialist and he lost the password for the account . So I as the owner can do nothing to change the account. As my 2 account is not an administrator. What now?

Cancel reply

Leave a Comment