利用netplwiz或者control userpasswords2或者rundll32 netplwiz.dll,UsersRunDll手动设置- rem 启用 ctrl + alt + delete
- reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DisableCad" /t REG_DWORD /d 0 /f
- Reg Add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\UserSwitch /v Enabled /t REG_DWORD /d 1 /f
- rem 不显示登录用户名
- reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DontDisplayLastName /t REG_DWORD /d 1 /f
- set UserName=%userprofile:~9%
- reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList" /t REG_DWORD /f /d 0 /v %UserName%
- reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI" /v LastLoggedOnSAMUser /t REG_SZ /d "" /f
- reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI" /v LastLoggedOnUser /t REG_SZ /d "" /f
- ::注册表中是否有AutoAdminLogon,视情况而定
- ::reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AutoAdminLogon" /t REG_SZ /d 0 /f
复制代码 代码参考网上教程,未深入测试。
一些关键句子Hide Specific User Account from the Sign-in Screen,Enable secure logon on windows 7 via commandline。 |