Skip to content

Instantly share code, notes, and snippets.

@jmahlman
Created April 20, 2016 16:17
Show Gist options
  • Select an option

  • Save jmahlman/62da766888e605246d50146c4a24dc7c to your computer and use it in GitHub Desktop.

Select an option

Save jmahlman/62da766888e605246d50146c4a24dc7c to your computer and use it in GitHub Desktop.
@echo off
REM --------------------------------------------------------------------------------
REM Enable Auto login
REM --------------------------------------------------------------------------------
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AutoAdminLogon" /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUserName" /t REG_SZ /d "YOUR WINDOWS USER" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultPassword" /t REG_SZ /d "USER PASSWORD" /f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment