Hi Folks...I've been running into some difficulties with using a post installation script to join a machine to a specific AD OU. I've used the default Kace join domain script and that works fine and join the domain and dumps the machine into the default "Computers OU" but i can't seem to modify that script or find any other script that let you join to a specific OU. I've looked a few other articles that are related to this here and have tried but no luck. I'm horrible at scripting so i've been using what other folks said worked for them...
Any help on this is greatly appreciated
Lou

0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

0
I use the unattend.xml method to add computers to a specific OU:

 <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
      <Identification>
        <JoinDomain>example.com</JoinDomain>
        <MachineObjectOU>OU=ComputersOU, DC=example, DC=com</MachineObjectOU>
        <Credentials>
          <Domain>example.com</Domain>
          <Username>kacecomputercreator</Username>
          <Password>PASSWORD</Password>
        </Credentials>
      </Identification>
    </component>
Answered 04/20/2017 by: JasonEgg
Red Belt

  • Giving this a shot today. I appreciate the info
Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share