建個注冊表文件,注冊表的文件后綴是.reg,內容如下:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="Administrator" //Administrator換成你想默認的用戶
"Defaultpassword"="" //這個是密碼
或者按照上面的注冊表進行手動修改
要自動登陸的話,如下:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="Administrator"
"Defaultpassword"=""
"AutoAdminlogon"="1"