无论(Regardless)您使用的是Windows 10 还是Windows 7,您都可能希望在不输入密码的情况下自动登录,同时保留现有的用户帐户密码。您可能有一个长密码,并且您使用的是只有您可以访问的 PC。如果这是你想要的,那么你很幸运。借助名为netplwiz的隐藏(netplwiz)Windows应用程序,您可以将Windows设置为在每次启动 PC 时自动登录而无需输入密码。这是如何完成的:
注意:(NOTE:)本指南涵盖带有 2020 年 5 月更新的 Windows 10(Windows 10 with May 2020 Update)和Windows 7。两个操作系统的过程几乎相同,因此我们决定仅在Windows 10中创建屏幕截图。
第 1 步。禁用“需要 Windows Hello(Require Windows Hello)登录Microsoft帐户”选项(仅当您使用Windows 10时)
如果您使用的是Windows 7,请跳到下一步。但是,如果您使用的是2020 年 5 月(May 2020) 更新(Update)或更新版本的 Windows 10,则必须首先禁用“要求 Microsoft 帐户登录 Windows Hello”("Require Windows Hello sign-in for Microsoft accounts")选项。这是一个强制性步骤;否则,您无法在没有密码的情况下登录。那是因为在隐藏的netplwiz(netplwiz)窗口中的后续步骤中没有这样的选项。Netplwiz不会按预期工作,即使您使用的是离线帐户(offline account)。
首先打开 Windows 10 PC 上的“设置”(opening the Settings)应用。在其中,打开Accounts,选择窗口左侧的登录选项,然后(Sign-in options)关闭(Off)“需要 Windows Hello 登录 Microsoft 帐户”("Require Windows Hello sign-in for Microsoft accounts")设置。
步骤 2.使用“控制 userpasswords2”或 netplwiz.exe 命令打开隐藏的用户帐户窗口(User Accounts)
要更改自动登录Windows所需的设置,而无需在每次启动 PC 时输入密码,您首先必须打开一个“隐藏的”用户帐户(User Accounts)窗口。有很多方法可以做到这一点:
最快的方法之一是按键盘上的Windows + R打开“运行”窗口(open the Run window)。在“运行”(Run)窗口中,键入以下两个命令之一:netplwiz.exe或control userpasswords2。不管(Regardless)你使用什么命令,结果都是一样的。
另一种方法是使用搜索(search)。例如,在 Windows 10 中,在“开始(Start)”按钮附近的搜索框中键入netplwiz 。在Windows 7中,在(Windows 7)开始菜单(Start Menu)搜索框中键入相同的命令。然后,单击或点击netplwiz.exe搜索结果。
最后但同样重要的是,您还可以使用命令提示符(use the Command Prompt)。键入netplwiz或控制 userpasswords2(control userpasswords2)并按Enter。
显示用户帐户(User Accounts)窗口,它看起来类似于下面的屏幕截图。此窗口列出了您 PC 上存在的所有用户帐户,包括Microsoft 帐户(Microsoft accounts)和本地帐户。(local accounts)该列表包括您用于登录的用户。
现在是时候执行下一步了,这是最重要的。
步骤 3. 如何在没有密码的情况下登录Windows
选择您不想再为其输入密码以登录Windows的用户帐户。然后,取消选中“用户必须输入用户名和密码才能使用此计算机”("Users must enter a user name and password to use this computer")选项,然后单击或点击确定。
注意:(NOTE:)如果您使用的是带有2020 年 5 月(May 2020)更新或更新版本的(Update)Windows 10 ,并且您没有看到“用户必须输入用户名和密码才能使用此计算机”("Users must enter a user name and password to use this computer")设置,请确保您已执行此步骤的第一步教程。
然后要求您输入该用户帐户的密码并确认。完成后,单击或点击OK。
下次启动 Windows 时,您将自动使用刚刚选择的用户登录。
无论您使用的是Windows 10还是Windows 7,此用户帐户都将成为默认登录。
Windows 使用 netplwiz 无密码登录:重要(Important)的安全注意事项!
您应该知道,在Windows中启用此“无密码登录”选项会带来一些严重的安全风险。这是因为,当您执行此操作时,Windows会将您的用户帐户密码存储为LSA机密,这意味着它可能会被黑客入侵。虽然它没有以纯文本形式存储密码那么糟糕,但使用NirSoft 的 LSASecretsView(NirSoft's LSASecretsView)等专用工具解密并非不可能。
除非您是在您是唯一可以访问的家庭计算机上执行此操作,否则我们不建议您这样做。您不应该在办公室的工作计算机上启用没有密码的自动Windows登录,而且您绝对不应该在路上带走的笔记本电脑或平板电脑上进行此操作。在这种情况下,最好以方便换取安全,而不是使用这个技巧。毕竟,如果您的设备被盗,您不希望其他人能够自动登录。
此外,如果您的Windows计算机或设备是网络域(例如公司网络)的一部分,则此过程不起作用。在网络域上,有关登录过程的策略由网络管理员设置,用户无法覆盖。如果您在工作 PC 上尝试此操作,它可能无法正常工作。这仅在您使用个人计算机或您管理的设备时才有效。
此外,即使在家用 PC 上,如果您在Windows计算机或设备上拥有多个用户帐户,使用netplwiz使无需密码即可登录可能被证明是一种不便,而不是一种祝福。Windows将始终自动登录到您在此过程中选择的用户帐户。要使用其他帐户登录,您需要等待Windows启动并登录。然后,您必须退出或切换(switch)到要登录的其他用户帐户。
最后,不要忘记,如果您想将其设置回原来的样子,您可以按照相同的程序并选中“用户必须输入用户名和密码才能使用这台计算机”选项。("Users must enter a user name and password to use this computer.")然后,按确定(OK)按钮。
为什么要不使用密码登录?
现在您知道如何让您的Windows计算机或设备自动登录,无需密码。此技巧在您的家用计算机上效果很好,主要由您或您信任的家庭成员使用。但是,正如您也发现的那样,这并不安全。您(Did)是否选择使用netplwiz无密码登录?你为什么要那个?一切都按预期工作,还是您遇到问题?(Did)在下面发表评论,让我们知道。
How to automatically login without a password into Windows (using netplwiz)
Regardless of whether you use Windows 10 or Windows 7, you may want to aυtomatiсally login without entering a password, while keeping yoυr existing user account pasѕword. You may have a lоng password, and you are υsіng a PC where only you have access. If this is what you want, then yоu are in luck. With the help of a hidden Windows app named netplwiz, you can set Windows to automatically log you in without typing the password, each time you start your PC. Here is how it's done:
NOTE: This guide covers Windows 10 with May 2020 Update and Windows 7. The procedure is almost the same in both operating systems, so we decided to create screenshots in Windows 10 only.
Step 1. Disable the "Require Windows Hello sign-in for Microsoft accounts" option (only if you're using Windows 10)
If you're using Windows 7, skip to the next step. However, if you're on Windows 10 with May 2020 Update or newer, you must first disable the "Require Windows Hello sign-in for Microsoft accounts" option. It's a mandatory step; otherwise, you can't log in without a password. That's because you get no such option on the next steps in the hidden netplwiz window. Netplwiz won't work as expected, even if you're using an offline account.
Start by opening the Settings app on your Windows 10 PC. In it, open Accounts, select Sign-in options on the left side of the window, and then turn Off the "Require Windows Hello sign-in for Microsoft accounts" setting.
Step 2. Open the hidden User Accounts window using the "control userpasswords2" or netplwiz.exe command
To change the settings required for you to automatically login to Windows without having to type your password each time you start your PC, you first have to open a "hidden" User Accounts window. There are many ways to do that:
One of the fastest is to press Windows + R on your keyboard and open the Run window. In the Run window, type one of the following two commands: netplwiz.exe or control userpasswords2. Regardless of the command you use, the result is the same.
Another way is to use the search. For example, in Windows 10, type netplwiz in the search box near the Start button. In Windows 7, type the same command in the Start Menu search box. Then, click or tap the netplwiz.exe search result.
Last but not least, you can also use the Command Prompt. Type netplwiz or control userpasswords2 and press Enter.
The User Accounts window is shown, and it looks similar to the screenshot below. This window lists all the user accounts, both Microsoft accounts and local accounts, that exist on your PC. The list includes the user that you used to log in.
Now it is time to perform the next step, which is the most important.
Step 3. How to login into Windows without a password
Select the user account for which you no longer want to type the password to log into Windows. Then, uncheck the "Users must enter a user name and password to use this computer" option and click or tap OK.
NOTE: If you're using Windows 10 with May 2020 Update or newer and you don't see the "Users must enter a user name and password to use this computer" setting, make sure that you've performed the first step from this tutorial.
You are then asked to type the password of that user account and confirm it. When you're done, click or tap on OK.
The next time you start Windows, you are automatically logged in with the user you just selected.
No matter whether you are using Windows 10 or Windows 7, this user account becomes the default for logging in.
Windows no password login using netplwiz: Important security considerations!
You should know that enabling this "login without password" option in Windows poses some serious security risks. That's because, when you do this, Windows stores your user account's password as an LSA secret, and that means it can be hacked. Although it's not as bad as storing your password in plain text, it's not impossible to decrypt using specialized tools such as NirSoft's LSASecretsView.
Unless you're doing this on a home computer to which you're the only one who has access, we don't recommend it. You shouldn't enable the automatic Windows login with no password on a work computer from your office, and you definitely shouldn't do it on a laptop or tablet that you're taking away with you on the road. In such cases, it's much better to trade convenience for security and not use this trick. After all, if your device gets stolen, you don't want other people to be able to log in automatically.
Also, if your Windows computer or device is part of a network domain, such as a corporate network, this procedure does not work. On network domains, the policies regarding the login procedure are set by the network administrator and cannot be overwritten by users. If you try this on your work PC, it is likely not to work. This only works if you are using a personal computer or a device that you manage.
Furthermore, even on a home PC, if you have multiple user accounts on your Windows computer or device, using netplwiz to make logging in without a password possible might prove to be an inconvenience instead of a blessing. Windows will always log in automatically to the user account that you've selected during this procedure. To log in using another account, you need to wait for Windows to startup and login. Then, you have to sign out or switch to the other user account you want to log on to.
Finally, don't forget that, if you want to set things back to the way they were, you can follow the same procedure and check the option that says "Users must enter a user name and password to use this computer." Then, press the OK button.
Why did you want to login without a password?
Now you know how to make your Windows computer or device sign you in automatically, without a password. This trick works well on your home computer, which is used mostly by you or family members that you trust. However, as you've also found out, it's not really safe. Did you choose to use netplwiz to login without a password? Why did you want that? Did everything work as expected, or did you encounter problems? Leave a comment below and let us know.