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! 

1 Comment   [ + ] Show Comment

Comments

  • 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
    • This content is currently hidden from public view.
      Reason: Removed by member request
      For more information, visit our FAQ's.
    • Question in addition to this. I've got this set up on our system and it works beautifully but I'd like to KEEP that account as an active account. Problem is it doesn't seem to have local Admin creds. Is there any way to do this? If not (possibly a separate question) how would you go about setting the built-in Administrator account's password?
Please log in to comment

Community Chosen Answer

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

Answered 05/23/2014 by: SMal.tmcc
Red Belt

Please log in to comment

Answers

1

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

Answered 05/22/2014 by: nlieschke
Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share