Press Win+r First, then enter control Userpasswords2, and then enter.
Then, in the User Account Settings window that appears, cancel the option to use this computer and the user must enter a user name and password.
However, some Win7 do not display the "To use this computer, users must enter a user name and password" selection box
The reason is that the registry is set incorrectly
Open the registry, you can choose to search for "regedit" in the "Start Menu", enter the run, or win+r, open the "Run" window, type "regedit", enter run, or open the Cube optimizer, find the "Windows System Toolbox" in "App", open " Registry Editor "is also available.
Locate the "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" Item,
In the right window, create a String value: "AutoAdminLogon" and set its value to "1" (the value is 1 o'clock Enable automatic login function, the automatic login function is disabled for 0 o'clock);
(When set up here, you will get back to the "to use this computer, the user must enter a user name and password" selection box,)
Of course, you can just finish it in the registry.
Then create the string value: "DefaultUserName" and change its key value to the user name used to log in.
Finally, create a string value: "DefaultPassword", change its key value to login password (corresponding user name);
Win7 College: Summary of user account automatic login method