how-to-automatically-login-to-windows-10

How to Automatically Login to Windows 10 (2021)

In this article, I will teach you. How to Automatically Login to Windows 10, a user must enter a local or Microsoft (online) account password each time. This provides a certain level of device security against third-party access but is inconvenient for home users as it increases the time to access the device’s desktop.

Automatic login without a password is most commonly allowed for devices running in kiosk mode. When you reboot (for example, due to a power outage), Windows will automatically log on to the desktop and start the required programs through Autorun.

Alert,  Automatic Windows login is used for user convenience but reduces the protection of your computer. Auto logon only needs to be switched on if you are the only user on your computer, and you are confident that no one else can access your system physically. Instead of that, the security of your personal data is at risk.

Disabling the password dialog on the Windows 10 Login screen does not mean that your account should have a blank password. You can configure Windows 10 to automatically use the saved data to log in to your device. In all other instances, for example, when you access your device through a network (SMB) or connect to a remote desktop (RDP), you will be prompted for a password.

How to Disable Windows 10 Login Password from User Account Settings?

The best way to disable password login on Windows 10 is to set the appropriate option in the User Account Settings dialogue box.

Step 1. Press Win+R;

Step 2. Enter the command netplwiz or control userpasswords2 in the run dialog box.

automatically-login-to-windows-10
Enter the Command netplwiz

Step 3. For the next window with a list of local user accounts, uncheck the option “User must enter a username and password to use this computer” and save the changes (OK);

automatically-login-to-windows-10
Enter the Username and Password to use this computer

Step 4. A window appears where you need to enter the user account and password (twice) that you need to use for automatic login and click “OK

automatically-login-to-windows-10

Step 5. Restart your computer and make sure that Windows boots directly to your desktop screen without entering a password.

When you are configuring a password-less login to a Windows virtual machine running on Hyper-V, do not use Enhanced Session Mode to connect to the VM console. Automatic login with saved credentials does not work in this mode because the connection to the Hyper-V console is performed via the Remote Desktop service. To connect to a virtual machine console not using Enhanced Session mode, close the connection window by clicking the cross in the upper right corner of the window.

automatically-login-to-windows-10

Fix: Microsoft Removes Auto Login User in Windows 10 20H1/20H2

In Starting with build Windows 10 2004 (20H1), Microsoft decided to remove the option to configure an automated login for local accounts in the User Control Panel. If you are using a local Windows logon account and not a Microsoft account (MSA), the “User must enter a username and password to use this computer” option will not be shown.

automatically-login-to-windows-10

Also Read: Best Practice: WordPress Robots.txt File for SEO

You can see the option used to disable password login on Windows 10 20H2, open the powershell.exe console and edit the registry:

New-ItemProperty -Path “HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device” -Name DevicePasswordLessBuildVersion -Value 0 -Type Dword –Force

automatically-login-windows-10

This registry key value disables the settings for Windows 10 “Require Windows Hello sign-in for Microsoft accounts.” Close to restart the netplwiz console and make sure the checkbox appears.

You can configure auto-login without a password for the latest Windows 10 builds (20H2 and 20H2).

Note. You cannot uncheck the option “User must enter a username and password to use this computer” on a computer joined to the Active Directory domain due to the default domain password policy. In this situation, the simple way to disable password requests on your login screen is via the registry.

Turn on Automatic Logon in Windows 10 through Registry?

Find a more common way to automatically log into Windows 10 without prompting for a password and skipping the Login screen. This method helps you to enable a password-less sign-in to your Microsoft account, domain account, or Windows 10 local account through the Registry Editor.

Warning, This autologin technique is less secure as the password is stored as plain text in the registry and can be viewed by any local user.

Step 1. Press Win+R and type regedit;

Step 2. Go to the registry key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon;

Step 3. You can change the value of the registry parameter AutoAdminLogon from 0 to 1;

Step 4. You can create a new DefaultDomainName string parameter, enter a domain name or a local machine name as its value.

Suggestion. You can find the name of your device in System Properties or use the hostname command.

automatically-login-to-windows-10

Step 5. In the DefaultUserName parameter, you need to specify the name of the user account that should be used to login (replace it with another username or do not modify it);

Step 6. You can create a DefaultPassword string parameter where the account password must be entered in plain text;

automatically-login-to-windows-10

Step 7. You can close the Registry Editor and restart your machine.

Step 8. After Windows is restart, you will sign in automatically with the specified account so don’t need to enter a password on the login screen.

To enable auto logon via the registry, you can use the following commands (replace root and [email protected] with your username and password, WORKGROUP must be replaced with your AD domain name if the domain account is used):

reg add “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon” /v AutoAdminLogon /t REG_SZ /d 1 /f
reg add “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon” /v DefaultUserName /t REG_SZ /d root /f
reg add “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon” /v DefaultPassword /t REG_SZ /d [email protected] /f
reg add “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon” /v ForceAutoLogon /t REG_SZ /d 1 /f
reg add “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon” /v DefaultDomainName /t REG_SZ /d WORKGROUP /f
reg add “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon” /v IgnoreShiftOvveride /t REG_SZ /d 1 /f
reg add “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon” /v AutoLogonCount /t REG_DWORD /d 1 /f

Conversely, you can use the PowerShell script to save the login information of the user to the registry:

$Username =’max’
$Pass = ‘[email protected]
$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
Restart-Computer

Automatic logon will not function if the logon banner policy is applied to the computer. Go to Computer Configuration-> Policy-> Windows Settings > Security Settings > Local Policies-> Security Options-> Interactive Logon: Message text for users trying to log on.

Disable Password Prompt after Sleep and Hibernate in Windows 10

Once you are using GPO, you can turn off the password request when your computer wakes up from sleep or hibernate mode.

Step 1. To do this, run the gpedit.msc console (you can run the local policy editor console like this in Windows 10 home versions);

Step 2. You can go to the group policy editor of Computer Configuration-> Administrative Templates-> System-> Power Management-> Sleep Settings;

Step 3. After Disable the GPO parameters “Require a password when a computer wakes (on a battery)” and “Require a password when a computer wakes on a battery plugged in” 

automatically-login-to-windows-10

Step 4. Windows will not require a password after resuming from sleep or hibernate mode.

Enable Automatic Secure Logon without a Password Using AutoLogon Tool

You can use the free AutoLogon for Windows tool to make a more secure and safe automatic logon on Windows 10. This utility was part of the Sysinternals system utilities pack and is now available and you can easily download it on the Microsoft website (https://docs.microsoft.com/en-us/sysinternals/downloads/autologon).

Auto logon is also helpful because previous ways to enable autologon in Windows 10 do not operate on computers that are joined of the Active Directory domain.

Step 1. You can download and run Autologon.exe (or autologon64.exe) as an administrator.

Step 2. Accept the terms of the license agreement;

windows-10

Step 3. Identify the user account, domain, and user password in which you want to perform autologin and press the Enable button:

Autologon successfully configured. The autologon password is encrypted.

Step 4. A window will simply appear which it’s indicates that the autologon is enabled. The encrypted password is stored in LSA format under the HKLM\SECURITY\Policy\Secrets registry key. In this situation, the password is not stored in clear text, but the encryption algorithm is not strong and any local computer administrator (but not a user) can decrypt it.

how-to-automatically-login-to-windows-10

You can configure login credentials to log on to Windows automatically using the Auto Logon command-line options. You can use the following command to configure Windows autologin for the user:

autologon64.exe USER_NAME DOMAIN PASSWORD /accepteula

To disable an automatic logon to Windows 10 without a password, just click the Disable button.

If you have any questions or queries about this article, please comment below, and we’ll get back to you. Check more daily updates to get subscribe to our website and also you can get informational articles and much more etc.

About webs360

Webs360 is to provide the best content to our readers by covering useful Guides and informative topics on Tech, Blogging, Android, Games, WordPress, Mobile, Soft360, Learning Point...

Check Also

how to install and configure ssl certificate

Exchange Server: Install and Configure SSL Certificate

In this article, I will teach. How to Install and Configure SSL Certificate on Exchange …

Leave a Reply

Your email address will not be published. Required fields are marked *

0 Shares
Share via
Copy link
Powered by Social Snap