Adding Computer to Active Directory into Specific Organizational Unit

Posted on 2006-05-09
Last Modified: 2008-05-30

During imaging of a workstation we add the workstation to our Active Directory.  Unless it's preadded to the domain the computer object is created in the default Computers container.  Is there any way to force the computer to get created in a specific OU instead of having to preadd it or move it after the fact?  I'd appreciate any ideas or options.  We have SMS in our environment and it only patches systems in one OU so we'd like all our computers to be in that OU.  
Question by:jamilor
    LVL 95

    Expert Comment

    by:Lee W, MVP
    I think this may answer your question.

    Author Comment

    Thanks for the reply.  That's a great asnwer.  Unfortunately we are not the only organization in this Domain Tree.   The domain is shared and each organization has their own OU under which they store their computers.  For this reason we cannot redirect the default Computers container to our OU since other organizations also use it and we wouldn't want their computers.

    Author Comment

    I think I answered my own question.  I can use the NETDOM command line with the /JOIN and /OU switches to specifiy the OU to install to.  I can add this to my install script.  Thank you.

    Accepted Solution

    PAQed with points refunded (500)

    Community Support Moderator

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Installing a printer using group policy preferences is not that hard let’s take a look at it. First lets open up your group policy console and edit the policy you want to add it to. I recommend creating a new policy for each printer makes it a l…
    [b]Ok so now I will show you how to add a user name to the description at login. [/b] First connect to your DC (Domain Controller / Active Directory Server) SET PERMISSIONS FOR SCRIPT TO UPDATE COMPUTER DESCRIPTION TO USERNAME 1. Open Active …
    This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
    This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now