none
WDS - PC not joining domain via Autounattend.xml RRS feed

  • Question

  • A month ago none of my images automatically joined the domain when deploying via WDS. Nothing has changed server side, or through the autounattend.xml itself. This is really puzzling. After hours of troubleshooting and trial and error, we're at a loss... Below is the .xml:

    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <servicing>
            <package action="configure">
                <assemblyIdentity name="Microsoft-Windows-Foundation-Package" version="6.1.7601.17514" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="" />
                <selection name="TabletPCOC" state="false" />
                <selection name="MediaCenter" state="false" />
            </package>
        </servicing>
        <settings pass="windowsPE">
            <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" 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-US</UILanguage>
                </SetupUILanguage>
                <UILanguage>en-US</UILanguage>
                <SystemLocale>en-US</SystemLocale>
                <UserLocale>en-US</UserLocale>
                <InputLocale>en-US</InputLocale>
                <UILanguageFallback></UILanguageFallback>
            </component>
            <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" 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</FullName>
                    <Organization>COMPANY</Organization>
                    <ProductKey>
                        <WillShowUI>OnError</WillShowUI>
                        <Key>KEY</Key>
                    </ProductKey>
                </UserData>
                <DiskConfiguration>
                    <Disk wcm:action="add">
                        <WillWipeDisk>true</WillWipeDisk>
                        <DiskID>0</DiskID>
                        <CreatePartitions>
                            <CreatePartition wcm:action="add">
                                <Order>1</Order>
                                <Type>Primary</Type>
                                <Extend>true</Extend>
                            </CreatePartition>
                        </CreatePartitions>
                        <ModifyPartitions>
                            <ModifyPartition wcm:action="add">
                                <Active>true</Active>
                                <Format>NTFS</Format>
                                <Label>Local Disk</Label>
                                <Letter>C</Letter>
                                <Order>1</Order>
                                <PartitionID>1</PartitionID>
                                <Extend>false</Extend>
                            </ModifyPartition>
                        </ModifyPartitions>
                    </Disk>
                    <WillShowUI>OnError</WillShowUI>
                </DiskConfiguration>
                <EnableFirewall>true</EnableFirewall>
                <WindowsDeploymentServices>
                    <ImageSelection>
                        <InstallImage>
                            <Filename>Win7ProTCM800.wim</Filename>
                            <ImageGroup>Lenovo</ImageGroup>
                            <ImageName>Windows 7 Pro ThinkCentre M800</ImageName>
                        </InstallImage>
                        <InstallTo>
                            <DiskID>0</DiskID>
                            <PartitionID>1</PartitionID>
                        </InstallTo>
                    </ImageSelection>
                </WindowsDeploymentServices>
                <EnableNetwork>true</EnableNetwork>
            </component>
        </settings>
        <settings pass="offlineServicing">
            <component name="Microsoft-Windows-LUA-Settings" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <EnableLUA>false</EnableLUA>
            </component>
        </settings>
        <settings pass="specialize">
            <component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="amd64" 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://www.google.com</Home_Page>
                <DisableAccelerators>false</DisableAccelerators>
                <DisableFirstRunWizard>true</DisableFirstRunWizard>
                <SearchScopes>
                    <Scope wcm:action="add">
                        <ScopeDefault>true</ScopeDefault>
                        <ScopeDisplayName>Google</ScopeDisplayName>
                        <ScopeKey>Google</ScopeKey>
                        <ScopeUrl>http://www.google.com/search?q={searchTerms}</ScopeUrl>
                    </Scope>
                </SearchScopes>
            </component>
            <component name="Security-Malware-Windows-Defender" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <DisableAntiSpyware>true</DisableAntiSpyware>
            </component>
            <component name="Microsoft-Windows-TerminalServices-LocalSessionManager" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <fDenyTSConnections>false</fDenyTSConnections>
            </component>
            <component name="Networking-MPSSVC-Svc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <FirewallGroups>
                    <FirewallGroup wcm:action="add" wcm:keyValue="RemoteDesktop">
                        <Active>true</Active>
                        <Group>Remote Desktop</Group>
                        <Profile>all</Profile>
                    </FirewallGroup>
                </FirewallGroups>
            </component>
            <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="amd64" 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>
                        <Domain>domain.com</Domain>
                        <Password>password</Password>
                        <Username>username</Username>
                    </Credentials>
                    <JoinDomain>domain.com</JoinDomain>
                </Identification>
            </component>
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <OEMInformation>
                    <HelpCustomized>false</HelpCustomized>
                    <Manufacturer>Lenovo</Manufacturer>
                    <Model>ThinkCentre M800</Model>
                    <SupportURL>support.lenovo.com/us/en</SupportURL>
                    <SupportPhone>1-800-426-7379</SupportPhone>
                    <SupportHours>24 hours / 7 days</SupportHours>
                </OEMInformation>
                <RegisteredOwner>COMPANY</RegisteredOwner>
                <RegisteredOrganization>COMPANY</RegisteredOrganization>
                <TimeZone>Eastern Standard Time</TimeZone>
                <ProductKey>KEY</ProductKey>
                <ComputerName>%MACHINENAME%</ComputerName>
            </component>
        </settings>
        <settings pass="oobeSystem">
            <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <InputLocale>en-US</InputLocale>
                <UILanguage>en-US</UILanguage>
                <UserLocale>en-US</UserLocale>
                <SystemLocale>en-US</SystemLocale>
                <UILanguageFallback></UILanguageFallback>
            </component>
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <UserAccounts>
                    <LocalAccounts>
                        <LocalAccount wcm:action="add">
                            <Password>
                                <Value>password</Value>
                                <PlainText>false</PlainText>
                            </Password>
                            <Description>Local Admin Account</Description>
                            <DisplayName>Admin</DisplayName>
                            <Group>Administrators;Users</Group>
                            <Name>Admin</Name>
                        </LocalAccount>
                    </LocalAccounts>
                    <AdministratorPassword>
                        <Value>password</Value>
                        <PlainText>false</PlainText>
                    </AdministratorPassword>
                    <DomainAccounts>
                        <DomainAccountList wcm:action="add">
                            <DomainAccount wcm:action="add">
                                <Group>Administrators;Users</Group>
                                <Name>Domain Users</Name>
                            </DomainAccount>
                            <Domain>domain.com</Domain>
                        </DomainAccountList>
                    </DomainAccounts>
                </UserAccounts>
                <OOBE>
                    <HideEULAPage>true</HideEULAPage>
                    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                    <NetworkLocation>Work</NetworkLocation>
                    <ProtectYourPC>3</ProtectYourPC>
                </OOBE>
                <TimeZone>Eastern Standard Time</TimeZone>
                <RegisteredOwner>COMPANY</RegisteredOwner>
                <RegisteredOrganization>COMPANY</RegisteredOrganization>
                <WindowsFeatures>
                    <ShowMediaCenter>false</ShowMediaCenter>
                </WindowsFeatures>
            </component>
        </settings>
        <cpi:offlineImage cpi:source="wim://clt-img1/deploymentshare$/operating%20systems/win7pro64/win7pro.wim#Windows 7 Pro Image" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>

    Tuesday, December 13, 2016 4:35 PM

All replies

  • Hi Michael_SERMO,

    Based on my knowledge and search, you could your xml tag <JoinWorkgroup> to avoid joining domain.

    Meanwhile, we could check the settings and the Unattend XML in the link below to get more information about the issue.

    https://community.spiceworks.com/topic/718051-windows-deployment-services-i-don-t-want-computer-to-join-domain-automatically

    Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.

    Hope it will be helpful to you


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Wednesday, December 14, 2016 9:23 AM
    Moderator
  • Hi,

    Haven't received your message a few days, was your issue resolved?
    I am proposing previous helpful replies as "Answered". Please feel free to try it and let me know the result. If the reply is helpful, please remember to mark it as answer which can help other community members who have same questions and find the helpful reply quickly.
    Best regards,
    Carl


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Wednesday, December 28, 2016 7:18 AM
    Moderator