- Do these in an administrative CMD:
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /t REG_SZ /d "1" /f
control userpasswords2
- Uncheck “Users must enter a username and password to use this computer”, click Apply.
- Type the username and password, click OK. Use DOMAIN\username if this is not a DC.
The password is stored in the computer in encrypted form.