Create Re-Enable Auto-Sign In

This commit is contained in:
jazir5 2024-06-24 02:46:32 -07:00 committed by GitHub
parent 87798b29c0
commit ebd529a9cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

18
Re-Enable Auto-Sign In Normal file
View File

@ -0,0 +1,18 @@
@echo off
SETLOCAL EnableExtensions EnableDelayedExpansion
:: Set your username and password
SET "USERNAME=your_username"
SET "PASSWORD=your_password"
:: Enable AutoAdminLogon
REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /t REG_SZ /d 1 /f
:: Set DefaultUserName
REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /t REG_SZ /d "%USERNAME%" /f
:: Set DefaultPassword
REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /t REG_SZ /d "%PASSWORD%" /f
echo Automatic login enabled with the specified username and password.
pause