From ebd529a9cc7180138f2fdd831f7a7fb20d15a419 Mon Sep 17 00:00:00 2001 From: jazir5 <31750063+jazir555@users.noreply.github.com> Date: Mon, 24 Jun 2024 02:46:32 -0700 Subject: [PATCH] Create Re-Enable Auto-Sign In --- Re-Enable Auto-Sign In | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Re-Enable Auto-Sign In diff --git a/Re-Enable Auto-Sign In b/Re-Enable Auto-Sign In new file mode 100644 index 0000000..fc8b9cf --- /dev/null +++ b/Re-Enable Auto-Sign In @@ -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