K2000 - How can I automatically Log-in throughout the scripted install
Hi there everyone!
We've nearly completed our scripted install for Windows 7 x64. The only issue we've been running into is that we have to log in repeatedly as the machine automatically reboots. Is there any way to have the machine reboot and not have to worry about logging in each time? Or would another option be to keep each install from forcing the machine to reboot and then on the final installation have the machine reboot. Let me know your thoughts - thanks!
Answers (2)
You need to set your autologin count in your answer file to 2 or 3 depending if you are using the driver feed.
<AutoLogon>
<Password>
<Value>VwBpAG4AZABvAHcAcwA3ACEAUABhAHMAcwB3AG8AcgBkAA==</Value>
<PlainText>false</PlainText>
</Password>
<Enabled>true</Enabled>
<LogonCount>3</LogonCount>
<Username>installer</Username>
</AutoLogon>
Then in my post task I also add this so it can finish posting be logged in with one more login autologin availble after it finishes.
start /wait reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v AutoAdminLogon /d 1 /f
start /wait reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v AutoLogonCount /t REG_DWORD /d 3 /f
start /wait reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultUserName /d Administrator /f
start /wait reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultPassWord /d password /f
start /wait reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultDomainName /f
Hi,
You need to add autologon to your answer file, see an example below:
<AutoLogon>
<Password>
<Value>password</Value>
<PlainText>true</PlainText>
</Password>
<Enabled>true</Enabled>
<Username>adminaccount</Username>
</AutoLogon>
http://technet.microsoft.com/en-us/library/cc766283(v=ws.10).aspx - See more at: http://www.itninja.com/question/k2000-how-can-i-automatically-log-in-throughout-the-scripted-install#sthash.NljAW5lp.dpuf
You will also need to add a final postinall task to cancel the autologon feature.
To do so, a simple registry is required:
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /t REG_SZ /d 0 /f
You need to add autologon to your answer file, see an example below:
<AutoLogon>
<Password>
<Value>password</Value>
<PlainText>true</PlainText>
</Password>
<Enabled>true</Enabled>
<Username>adminaccount</Username>
</AutoLogon>
http://technet.microsoft.com/en-us/library/cc766283(v=ws.10).aspx - nlieschke 10 years ago