This article describes how to configure Windows 10 to automate the logon process. By using this feature, you can automate the logon process to automatically log on with your account. This feature stores the credentials in the registry database.
Let’s see how it works:
- Click Start, and then click Run.
- Type Regedt32.exe, and then press Enter.
- Navigate to the following subkey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
- Double-click the DefaultUserName entry, type your <username>, and then click OK.
- Double-click the DefaultPassword entry, type your <password>, and then click OK.
Note that you can also add a default domain name. Now, you must enable the auto logon feature:
- Click New, and type AutoAdminLogon, and then press Enter.
- Double-click AutoAdminLogon, and type 1 and then click OK.
Let’s check if it works by restarting your machine.
You can automate these steps using Windows PowerShell:
PS > $RegPath = "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" PS > $DefaultUsername = "your username" PS > $DefaultPassword = "your password" PS > Set-ItemProperty $RegPath "AutoAdminLogon" -Value "1" -type String PS > Set-ItemProperty $RegPath "DefaultUsername" -Value "$DefaultUsername" -type String PS > Set-ItemProperty $RegPath "DefaultPassword" -Value "$DefaultPassword" -type String
Editing the registry is risky! Remember to always backup the registry.
Thanks for reading! You can follow me on Twitter @PrigentNico