0

I unhid the administrator account on Windows 10 using the following commands, by booting into a recovery flash drive and using CTRL+F10.

reg load HKLM\TEMP c:\windows\system32\config\sam
for /f "tokens=3" %a in ('reg query HKLM\TEMP\SAM\Domains\Account\Users\000001F4 /v F') do set str=%a
set str=%str:2000011=2000010%
reg add HKLM\TEMP\SAM\Domains\Account\Users\000001F4 /v F /t REG_BINARY /d %str% /f
reg unload HKLM\TEMP

How do I re-disable the Administrator account to where I can re-enable it in the future?

1
  • 2
    Set the key to its original value. The command set 2000011 to 2000010 in order to enable the account. To avoid issue user the user management GUI to disable the account. You can also follow the instructions in my answer and disable the account instead of enabling it. You can also just reverse the values in your command.
    – Ramhound
    May 14 at 6:38

1 Answer 1

0

Did you hide the default Administrator Account using the recovery flash drive?

Is there any other local admin account on the machine that is not hidden.

If so, then you can run command prompt as an admin:

  1. Type net user administrator /active:yes
  2. Press Enter
  3. Type net user administrator "newpswd" to reset the password.

After this you would be able to login to the hidden admin account

If you are just have a standard account and there are no local admins available as they were hidden then follow the steps mentioned by Ramhound to achieve the same.

Sorry my fault, I thought it was hid instead of unhide...

Here's the correct commands

Type net user administrator /active:no

Press Enter

If you want any other admin to be hidden then replace administrator with that admin username

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.