1

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?

MiG
  • 1,130
Sven
  • 21

1 Answers1

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