+ Post New Thread
Results 1 to 8 of 8
O/S Deployment Thread, Autologin problems after joining domain in Technical; I am trying to get a working image together of windows 7 to replace the one i inherited from the ...
  1. #1
    alunmjones's Avatar
    Join Date
    Jul 2009
    Location
    North Wales
    Posts
    180
    Thank Post
    9
    Thanked 10 Times in 10 Posts
    Rep Power
    12

    Autologin problems after joining domain

    I am trying to get a working image together of windows 7 to replace the one i inherited from the previouse ICT Manager, which is not working correctely, ive got everything working untill fog joins the machine to the domain.

    at this point the autologin functions in the unattend.xml fails as it is trying to log in with the local admin account password to the domain admin account, as they have different passwords it oviousely wont work.

    for my last attempt, in testing now, i have set the domain within the autologon filed to %computername%, as shown below.

    Code:
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <AutoLogon>
                    <Enabled>true</Enabled>
                    <LogonCount>4</LogonCount>
                    <Username>administrator</Username>
                    <Password>
                        <Value><<---Omitted--->/Value>
                        <PlainText>false</PlainText>
                    </Password>
                    <Domain>%computername%</Domain>
                </AutoLogon>
                <OOBE>
                    <HideEULAPage>true</HideEULAPage>
                    <NetworkLocation>Work</NetworkLocation>
                    <ProtectYourPC>3</ProtectYourPC>
                    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                </OOBE>
                <UserAccounts>
                    <LocalAccounts>
                        <LocalAccount wcm:action="add">
                            <Password>
                                <Value><<---Omitted--->/Value>
                                <PlainText>false</PlainText>
                            </Password>
                            <Description>Local Admin Account</Description>
                            <DisplayName>Administrator</DisplayName>
                            <Group>Administrators</Group>
                            <Name>Administrator</Name>
                        </LocalAccount>
                    </LocalAccounts>
                    <AdministratorPassword>
                        <Value><<---Omitted--->/Value>
                        <PlainText>false</PlainText>
                    </AdministratorPassword>
                </UserAccounts>
                <RegisteredOrganization><---Omitted---></RegisteredOrganization>
                <RegisteredOwner>Y<---Omitted--->/RegisteredOwner>
                <TimeZone>GMT Standard Time</TimeZone>
                <FirstLogonCommands>
                    <SynchronousCommand wcm:action="add">
                        <CommandLine>powercfg -h off</CommandLine>
                        <Description>Turn Hibernate off</Description>
                        <RequiresUserInput>false</RequiresUserInput>
                        <Order>1</Order>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <RequiresUserInput>true</RequiresUserInput>
                        <Order>2</Order>
                        <Description>Set Time</Description>
                        <CommandLine>net time <---Omitted---> /set /y</CommandLine>
                    </SynchronousCommand>
                </FirstLogonCommands>
                <OEMInformation>
                    <SupportURL>http://helpdesk/</SupportURL>
                    <SupportHours>08:30 - 16:30</SupportHours>
                    <HelpCustomized>true</HelpCustomized>
                    <Manufacturer>Y<---Omitted--->/Manufacturer>
                    <Model>PC/Laptop</Model>
                    <SupportPhone><---Omitted---></SupportPhone>
                </OEMInformation>
                <WindowsFeatures>
                    <ShowMediaCenter>false</ShowMediaCenter>
                </WindowsFeatures>
                <ShowWindowsLive>false</ShowWindowsLive>
                <BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>
            </component>
    does anyone know anything else i can try if this fails?

    thank you

    Alun Jones

  2. #2

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,761
    Thank Post
    354
    Thanked 532 Times in 497 Posts
    Rep Power
    182
    Have you tried domain as just . ?

    We also have the line to enable the local admin account within ours, as by default with sysprep isn't it disabled?

    Steve

  3. #3
    alunmjones's Avatar
    Join Date
    Jul 2009
    Location
    North Wales
    Posts
    180
    Thank Post
    9
    Thanked 10 Times in 10 Posts
    Rep Power
    12
    ive tried . and ive enabled the local admin for 4 logons to allow for all the logons im seeing it needs for each step.

  4. #4

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,761
    Thank Post
    354
    Thanked 532 Times in 497 Posts
    Rep Power
    182
    You've done the enable autologon line, but unless you've got more lines you haven't added you haven't actually enabled the admin account?

    Steve

  5. #5
    alunmjones's Avatar
    Join Date
    Jul 2009
    Location
    North Wales
    Posts
    180
    Thank Post
    9
    Thanked 10 Times in 10 Posts
    Rep Power
    12
    its on line 20

    <UserAccounts>
    <LocalAccounts>
    <LocalAccount wcm:action="add">
    <Password>
    <Value><<---Omitted--->/Value>
    <PlainText>false</PlainText>
    </Password>
    <Description>Local Admin Account</Description>
    <DisplayName>Administrator</DisplayName>
    <Group>Administrators</Group>
    <Name>Administrator</Name>
    </LocalAccount>
    </LocalAccounts>
    <AdministratorPassword>
    <Value><<---Omitted--->/Value>
    <PlainText>false</PlainText>
    </AdministratorPassword>
    </UserAccounts>

  6. #6
    alunmjones's Avatar
    Join Date
    Jul 2009
    Location
    North Wales
    Posts
    180
    Thank Post
    9
    Thanked 10 Times in 10 Posts
    Rep Power
    12
    as an update, i solved my problem, ended up telling fog to not join the machine to the domain, im now using a VBS script to do the job when all of my other processes are finished, instead of mid way through as fog wanted to do it, it now works, it should be 99.99% compatible as it has 1gb of drivers installed as needed.

  7. #7

    Join Date
    May 2014
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Lightbulb Solution

    I spent hours upon hours trying to figure out how to fix this and finally came up with this solution.

    Run this command to set the logon user to the local Administrator account. If you are using a different local account enter that name instead of Administrator.
    Code:
    REG ADD "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /t REG_SZ /d ".\Administrator" /f
    You can add this as a command in the answer file or any other method you want as long as you do it before joining the domain.

    After everything is done I then run this to unset the logon user.
    Code:
    REG DELETE "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /f

  8. #8
    alunmjones's Avatar
    Join Date
    Jul 2009
    Location
    North Wales
    Posts
    180
    Thank Post
    9
    Thanked 10 Times in 10 Posts
    Rep Power
    12
    I've tried this, still cant get it to work, i reverted to my VBS script that works every time.



SHARE:
+ Post New Thread

Similar Threads

  1. Problem joining domain
    By jtennant12 in forum Windows Server 2008 R2
    Replies: 14
    Last Post: 16th December 2013, 09:42 PM
  2. [Fog] FOG Joining Domain Problem
    By EvLPhenom in forum O/S Deployment
    Replies: 9
    Last Post: 6th November 2011, 08:17 PM
  3. RIS Issue - Problem joining domain
    By garethedmondson in forum Windows Server 2000/2003
    Replies: 9
    Last Post: 6th July 2009, 11:39 PM
  4. Cannot join domain, dns problems
    By pod in forum Windows Server 2000/2003
    Replies: 0
    Last Post: 14th February 2009, 04:04 PM
  5. Replies: 2
    Last Post: 25th January 2006, 12:25 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •