Launch Regedit. #r -> regedit
- Navigate to: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\winlogon Set: AutoAdminLogon = 1 (1 means enable auto login, 0 means disable it.) Tip: Try Regedit's 编辑->查找: AutoAdminLogon.
- Check for the existence of a REG_SZ type entry called DefaultUserName. If exists, the value should be the user who you wish to logon automatically. If not exists, then right-click in the right pane, 新建->字符串值, name it "DefaultUserName". Set the string value to the required UserName.
以上方法在 Windows7 旗舰版上通过验证。
可选步骤:
-
如果想为默认登录用户添加密码: Create a new String Value called DefaultPassword and set it as you want;
-
If your Windows 7 Machine has joined a domain, then create a String Value called DefaultDomainName and set its value as that domain name;
上面的方法可以实现隐藏用户:创建一个新用户public,将其设为DefaultUserName, 然后AutoAdminLogon设为1,这样开机就自动进入了public用户, 只能用“切换用户”功能进入自己使用的用户,只要给自己使用的用户加上密码就可以阻止别人使用了。