AutomaticLogonWindows

From Piszczynski
Revision as of 23:45, 9 April 2022 by piszczynski>Aleks (Created page with " == 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 acco...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.