AutomaticLogonWindows

From Piszczynski

Automatically logon to windows without entering password

Best used with a home PC and a local account you can set to not require a password.

First create a local account with the permissions you require.

Then enter in the following changes in the registry using a powershell script;

$Username =<username>
$Pass = <password>
$RegistryPath = HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
Set-ItemProperty $RegistryPath AutoAdminLogon -Value 1 -Type String
Set-ItemProperty $RegistryPath DefaultUsername -Value $Username -type String
Set-ItemProperty $RegistryPath DefaultPassword -Value $Pass -type String

The computer should be restarted to take effect.

Instead of saving the password in the reg you can change the group policy on the local machine to not require a password on wake. this is found in the following location:

Computer Configuration -> Administrative Templates -> System -> Power Management -> Sleep Settings

  • disable the GPO parameters “Require a password when a computer wakes (on battery)” and “Require a password when a computer wakes on battery (plugged in)”