REGEDIT:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device
👉 Change the Value from “2” to “0”, then click “OK.

RUN:
NETPLWIZ
👉 Select the user account to login automatically
👉 Uncheck “Users Must Enter A User Name and Password To Use This Computer”
👉 Click “Apply
👉 On the pop-up screen enter the username password
👉 Click “OK”

You’re done. The next time the computer is restarted, Windows will automatically log in the preselected user.