7 Replies Latest reply on Apr 29, 2013 8:34 AM by BlairK

    Domain Join to specific OU

    SergK Rookie

      Hello guys,

       

      is it possible to join domain to a specific OU during provisioning ?

      I have tried to configurate this part in my unattend.xml, but it doesn't work, i don't know why.

      How do you handle this ?

       

      Here is my unattend.xml

       

      <?xml version="1.0" encoding="utf-8"?>
      <unattend>
        <settings pass="auditSystem">
          <component name="Microsoft-Windows-PnpCustomizationsNonWinPE" processorArchitecture="%processortype%" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <DriverPaths>
              <PathAndCredentials wcm:keyValue="1" wcm:action="add">
                <Path>c:\windows\LDDriverStore</Path>
              </PathAndCredentials>
            </DriverPaths>
          </component>
          <component name="Microsoft-Windows-Shell-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="%processortype%">
            <UserAccounts>
              <AdministratorPassword>
                <PlainText>true</PlainText>
                <Value>%adminpass%</Value>
              </AdministratorPassword>
            </UserAccounts>
            <AutoLogon>
              <Enabled>%autologon%</Enabled>
              <Username>%autologinuser%</Username>
              <Password>
                <PlainText>true</PlainText>
                <Value>%adminpass%</Value>
              </Password>
              <LogonCount>%autologoncount%</LogonCount>
            </AutoLogon>
          </component>
        </settings>
        <settings pass="auditUser">
          <component name="Microsoft-Windows-Deployment" processorArchitecture="%processortype%" 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>c:\Windows\System32\sysprep\sysprep.exe /oobe /reboot</Path>
              </RunSynchronousCommand>
            </RunSynchronous>
          </component>
        </settings>
        <settings pass="oobeSystem">
          <component name="Microsoft-Windows-Shell-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="%processortype%">
            <OOBE>
              <HideEULAPage>true</HideEULAPage>
       <NetworkLocation>Work</NetworkLocation>        
       <ProtectYourPC>1</ProtectYourPC>
       <SkipMachineOOBE>true</SkipMachineOOBE>
              <SkipUserOOBE>true</SkipUserOOBE>
            </OOBE>
            <ProductKey>%productkey%</ProductKey>
            <RegisteredOwner>%owner%</RegisteredOwner>
            <RegisteredOrganization>%organization%</RegisteredOrganization>
            <UserAccounts>
              <AdministratorPassword>
                <PlainText>true</PlainText>
                <Value>%adminpass%</Value>
              </AdministratorPassword>
            </UserAccounts>
            <AutoLogon>
              <Enabled>%autologon%</Enabled>
              <Username>%autologinuser%</Username>
              <Password>
                <PlainText>true</PlainText>
                <Value>%adminpass%</Value>
              </Password>
              <LogonCount>%autologoncount%</LogonCount>
            </AutoLogon>
          </component>
        </settings>
        <settings pass="specialize">
          <component name="Microsoft-Windows-Shell-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="%processortype%">
            <ComputerName>%ldHostname%</ComputerName>
          </component>    
          <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="%processortype%" 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%</Domain>
                           <Password>%dompassword%</Password>
                           <Username>%domuser%</Username>
                       </Credentials>
                       <JoinDomain>%Domain%</JoinDomain>
                       <MachineObjectOU>%MaschineObjectOu%</MachineObjectOU>
         <UnsecureJoin>false</UnsecureJoin>
                   </Identification>
               </component>
          </settings>
      </unattend>