A simple batch script to disable auto-logging in of passwordless last user in Windows 10. If a user without a password shuts down the PC, Windows 10 for some reason decides to automatically login that user on the next restart, making it more difficult to choose what user you really want to sign-in (as you have to sign-out of that account first before being able to choose).
For more information, read these threads:
- https://answers.microsoft.com/en-us/windows/forum/all/how-to-stop-auto-login-of-last-user-windows-10/1ce4b352-0856-40c0-87a8-2f8ef299007d
- https://superuser.com/questions/952868/can-i-disable-auto-logon-on-windows-10-home
- Summary of Workarounds. This script uses Solution #2 + changing permissions to avoid the problem stated.
- This link might not work in the future, as Microsoft Answers does not yet have a permalink feature for replies...
I will not be responsible to any damages that this program may cause your machine. DO A SYSTEM BACKUP FIRST! Read the LICENSE for more information.
Windows Defender SmartScreen might block the execution of this file. Read the source code if you have any doubts, or run a VirusTotal scan.
Download as ZIP, then extract to your desired location.
Right-click DISABLE_AUTO_LOGIN.bat
> Run as Administrator
.
Right-click RESTORE.bat
> Run as Administrator
.
Just re-run the script : DISABLE_AUTO_LOGIN.bat
> Run as Administrator
.
- SetACL - for changing registry permissions