troubleshooting Question

Unattended Windows 7 Installation Not Joining Domain

Avatar of Drew3517
Drew3517 asked on
Windows 7
6 Comments1 Solution6893 ViewsLast Modified:
I'm trying to build an image of Windows 7 to roll out across our network, but I'm having problems getting it to join the domain.

I have created an autounatted file (see code below) with Windows AIK and filled in the correct details to join the domain, but after you've run sysprep and the computer reboots, you get the following error message:

The security database on the server does not have a computer account for this workstation trust relationship.

I have looked in AD during the process and I have noticed the following:

-  Windows 7 joins the domain automatically when installed from the CD as Administrator1
-  PC is configured, and sysprep is run. Reboot.
-  As the computer boots up it automatically joins the domain as WIN-VUTDTUTGH2F, then it prompts me to give it a station name (e.g. ACER-04), goes though the rest of the start-up procedure and takes me to the logon screen.
-  The logon screen shows MyDomain, but when I log in I get the above error, and there is no AD entry for ACER-04. Only entries for Administrator1 and WIN-VUTFTUTGH2F

Does anyone know how to get around this?
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <servicing></servicing>
    <settings pass="windowsPE">
        <component name="Microsoft-Windows-International-Core-WinPE" 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">
            <SetupUILanguage>
                <UILanguage>en-GB</UILanguage>
            </SetupUILanguage>
            <InputLocale>en-GB</InputLocale>
            <SystemLocale>en-GB</SystemLocale>
            <UILanguage>en-GB</UILanguage>
            <UserLocale>en-GB</UserLocale>
        </component>
        <component name="Microsoft-Windows-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">
            <UserData>
                <AcceptEula>true</AcceptEula>
                <FullName>Company Name</FullName>
                <Organization>Company Name</Organization>
            </UserData>
        </component>
    </settings>
    <settings pass="specialize">
        <component name="Microsoft-Windows-IE-InternetExplorer" 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">
            <Home_Page>http://intranet</Home_Page>
            <CompanyName>Company Name</CompanyName>
            <DisableFirstRunWizard>true</DisableFirstRunWizard>
            <DisableWelcomePage>true</DisableWelcomePage>
            <FavoritesOnTop>false</FavoritesOnTop>
        </component>
        <component name="Microsoft-Windows-UnattendedJoin" 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">
            <Identification>
                <Credentials>
                    <Password>blahblahblah</Password>
                    <Username>administrator</Username>
                    <Domain>MYDOMAIN</Domain>
                </Credentials>
                <JoinDomain>mydomain.com</JoinDomain>
            </Identification>
        </component>
        <component name="Microsoft-Windows-powercpl" 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">
            <PreferredPlan>8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c</PreferredPlan>
        </component>
    </settings>
    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-Deployment" 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">
            <Reseal>
                <Mode>OOBE</Mode>
            </Reseal>
        </component>
        <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">
            <OOBE>
                <HideEULAPage>true</HideEULAPage>
                <SkipUserOOBE>false</SkipUserOOBE>
                <NetworkLocation>Work</NetworkLocation>
                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                <ProtectYourPC>1</ProtectYourPC>
                <SkipMachineOOBE>false</SkipMachineOOBE>
            </OOBE>
            <UserAccounts>
                <AdministratorPassword>
                    <Value>blahblahblah=</Value>
                    <PlainText>false</PlainText>
                </AdministratorPassword>
                <LocalAccounts>
                    <LocalAccount wcm:action="add">
                        <Password>
                            <Value>blahblahblah</Value>
                            <PlainText>false</PlainText>
                        </Password>
                        <Description>Drew</Description>
                        <DisplayName>Drew</DisplayName>
                        <Group>Administrators</Group>
                        <Name>Drew</Name>
                    </LocalAccount>
                </LocalAccounts>
            </UserAccounts>
            <ShowWindowsLive>false</ShowWindowsLive>
            <TimeZone>GMT Standard Time</TimeZone>
            <OEMInformation>
                <Manufacturer>Company Name</Manufacturer>
                <Model></Model>
                <SupportHours>9am - 5pm</SupportHours>
                <SupportPhone>3517</SupportPhone>
                <SupportURL>http://it/helpdesk</SupportURL>
                <Logo>C:\Windows\Drew\lg.bmp</Logo>
            </OEMInformation>
            <RegisteredOrganization>Company Name</RegisteredOrganization>
            <RegisteredOwner>Company Name</RegisteredOwner>
        </component>
    </settings>
    <cpi:offlineImage cpi:source="wim://nec-dwalters/esources/install.wim#Windows 7 PROFESSIONAL" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
ASKER CERTIFIED SOLUTION
SaLus

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros