-
2008年11月10日
Windows自动登录
分类:未加入域的Windows可以:
1. 运行control userpasswords2或者rundll32 netplwiz.dll,UsersRunDll;Windows Vista及以后的Windows还可以运行Netplwiz
2. 取消勾选“Users must enter a username and password to use this computer”(“要使用本机,用户需输入用户名和密码(E)”)
3. 点击“Apply”(“应用”)
4. 在弹出的“Automatically Log On”(“自动登录”)中输入你想要自动登录系统的“User name”(“用户名”)和“Password”(“密码”)
5. 输入完成后点击“OK”(“确定”)
重启Windows后即可自动以该用户登录进系统,此方法以密文保存密码。
通过修改Windows注册表:
1. 打开注册表项HKEY_LOCAL_MACHINE \SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon
2. 设置项DefaultUserName和DefaultPassword数值数据
3. 设置项AutoAdminLogon数值数据为1
重启Windows后即可自动以该用户登录进系统,详见KB 315231。
若要系统在注销后也能自动登录进,需要在以上注册表项下添加项ForceAutoLogon:
类型:REG_SZ
数据:1
跟此有关的其它方法,详见KB 920319。
无人值守安装Windows:
1. Sysprep(System Preparation)。Sysprep是一种专为企业系统管理员、OEM厂商以及其他需要在多台计算机上部署Windows操作系统的客户而设计的实用工具,详见简介。Windows Vista及以后的Windows中位于%SystemRoot%\System32\sysprep\目录中的sysprep.exe,其对应的配置文件为sysprep.inf。GuiUnattended部分中的Autologon,详见Sysprep Tools and Settings和KB 302577。
2. Unattended Windows Setup(无人值守安装Windows)。Windows Vista之前对应Unattend.txt,调用以下命令:
winnt /u:<answer file> /s:<install source>
详见KB 155197。Windows Vista及之后对应Unattend.xml,但文件安装调用以下命令:
Setup.exe /unattend:<unattend file>
详见Sample Unattend Files。以上的Unattend文件中设计自动登录的设置在Microsoft-Windows-Shell-Setup下的AutoLogon中:
<AutoLogon>
<Password>
<Value>MyPassword</Value>
</Password>
<Domain>FabrikamDomain</Domain>
<Enabled>true</Enabled>
<LogonCount>2</LogonCount>
<Username>MyUserName</Username>
</AutoLogon>
上述两种方法间的区别见Comparing Windows XP and Windows Vista Deployment Technologies。关于部署则有Performing Unattended Installations和Windows Deployment Services Step-by-Step Guide。
【资源】
随机文章:
多机器间共享鼠标/键盘/剪贴板软件 2009年10月15日Programming Skills and Testers! 2009年07月17日性能、单元和自动化测试文章聚合 2009年06月11日Windows每个进程到底能容纳多少个线程? 2009年05月13日Apache ab 2009年05月03日
收藏到:Del.icio.us

评论