Win 7 unattend.xml and domain join


  1. Posts : 1
    win 7 pro 64
       #1

    Win 7 unattend.xml and domain join


    am using wds and wsim to do my imaging
    I created an answer file that works for just about everything accept joining to the domain. I have my answer file configured to prompt for computer name only and all the rest is automated. It prompts for the computername and carries on.The answer file seems to join it to the domain as when the imaging process finishes I get a domain logon prompt, however when i try to log into my domain I get an error saying the security database doesnt have an computer account for this trust relationship. Also when i search ad for the computername its not there. The machine is being joined to the domain under an win 7 generated name!!

    WIN-xxxxxxxxxxxxxxxxxxxxxxxxxx

    here is my answer file

    Code:
     
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="generalize">
    <component name="Microsoft-Windows-Security-SPP" 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">
    <SkipRearm>1</SkipRearm>
    </component>
    </settings>
    <settings pass="specialize">
    <component name="Microsoft-Windows-Deployment" 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">
    <RunSynchronous>
    <RunSynchronousCommand wcm:action="add">
    <Order>1</Order>
    <Path>net user administrator /active:yes</Path>
    </RunSynchronousCommand>
    </RunSynchronous>
    </component>
    <component name="Microsoft-Windows-Security-SPP-UX" 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">
    <SkipAutoActivation>true</SkipAutoActivation>
    </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">
    <RegisteredOrganization>Microsoft</RegisteredOrganization>
    <RegisteredOwner>AutoBVT</RegisteredOwner>
    <ShowWindowsLive>false</ShowWindowsLive>
    <StartPanelOff>true</StartPanelOff>
    <TimeZone>Eastern Standard Time</TimeZone>
    <DoNotCleanTaskBar>false</DoNotCleanTaskBar>
    </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>xxxxxx</Domain>
    <Password>xxxxxxx</Password>
    <Username>xxxxxxxxx</Username>
    </Credentials>
    <DebugJoin>True</DebugJoin>
    <JoinDomain>xxxxxxxxxxx</JoinDomain>
    </Identification>
    </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>
    <SystemLocale>en-us</SystemLocale>
    <UserLocale>en-us</UserLocale>
    <UILanguage>en-us</UILanguage>
    </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">
    <FirstLogonCommands>
    <SynchronousCommand wcm:action="add">
    <CommandLine>cscript //b c:\windows\system32\slmgr.vbs /ipk xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</CommandLine>
    <Order>1</Order>
    <RequiresUserInput>false</RequiresUserInput>
    </SynchronousCommand>
    <SynchronousCommand wcm:action="add">
    <Order>2</Order>
    <RequiresUserInput>false</RequiresUserInput>
    <CommandLine>cscript //b c:\windows\system32\slmgr.vbs /ato</CommandLine>
    </SynchronousCommand>
    </FirstLogonCommands>
    <OOBE>
    <HideEULAPage>true</HideEULAPage>
    <NetworkLocation>Work</NetworkLocation>
    <ProtectYourPC>1</ProtectYourPC>
    </OOBE>
    <UserAccounts>
    <AdministratorPassword>
    <Value>TAAzAHQATQAzADEATgBBAGQAbQBpAG4AaQBzAHQAcgBhAHQAbwByAFAAYQBzAHMAdwBvAHIAZAA=</Value>
    <PlainText>false</PlainText>
    </AdministratorPassword>
    <LocalAccounts>
    <LocalAccount wcm:action="add">
    <Description>Local Administrator</Description>
    <DisplayName>Administrator</DisplayName>
    <Group>Administrators</Group>
    <Name>Administrator</Name>
    </LocalAccount>
    </LocalAccounts>
    </UserAccounts>
    <RegisteredOrganization>xxxxxxx</RegisteredOrganization>
    <RegisteredOwner>xxxxxxxx</RegisteredOwner>
    </component>
    </settings>
    <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>
    <InputLocale>en-us</InputLocale>
    <UserLocale>en-us</UserLocale>
    <UILanguageFallback>en-us</UILanguageFallback>
    <UILanguage>en-us</UILanguage>
    <SystemLocale>en-us</SystemLocale>
    </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">
    <WindowsDeploymentServices>
    <Login>
    <Credentials>
    <Domain>xxxxxxx</Domain>
    <Password>xxxxxxxx</Password>
    <Username>xxxxxxx</Username>
    </Credentials>
    </Login>
    </WindowsDeploymentServices>
    </component>
    </settings>
    <cpi:offlineImage cpi:source="wim://torvsrvtest/reminst/w7.wim#Win7V2" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>
    Last edited by Brink; 11 Jan 2012 at 12:54. Reason: code box
      My Computer


  2. Posts : 109
    Windows 7 Ultimate SP1 x64
       #2

    Below is a quote from technet, I believe what may be missing is the unsecure command, meaning it doesn't immediately have to have the username and password credentials... Might be worth a shot to add that in.... I haven't tried the autojoin with the unattend yet...



    For Windows Vista, Windows Server 2008, Windows 7, and Windows Server 2008 R2 images. The image unattend file (ImageUnattend.xml) must have the setting <UnsecureJoin>true</UnsecureJoin> in the Microsoft-Windows-UnattendedJoin component. Additionally, the Microsoft-Windows-Shell-Setup component for the <specialize> unattended pass must exist, even if it is empty.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 01:10.
Find Us