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.
This will work if done AS an administrator. If you are not, it will not work!
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.
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?