/build/static/layout/Breadcrumb_cap_w.png

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! 


1 Comment   [ + ] Show comment
  • 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 - nlieschke 10 years ago
    • 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? - Mizzko 10 years ago

Answers (2)

Posted by: SMal.tmcc 10 years ago
Red Belt
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

Posted by: nlieschke 10 years ago
Yellow Belt
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

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ