Windows – Delete Built-in Administrator Account

email me

Manual Method


Add full control registry permissions

HKEY_LOCAL_MACHINE\SAM\SAM


Delete registry key

HKEY_LOCAL_MACHINE\SAM\SAM\Domains\Account\Users\Names\Administrator


Verify

Check Computer Management > Local Users and Groups > Users

 

Remote Method


Command

PsExec64.exe \\%computername% -accepteula -nobanner -i -s cmd /c “echo . | powershell.exe (Remove-Item HKLM:\SAM\SAM\Domains\Account\Users\Names\Administrator -Force)”