set computers default OU

Posted on 2009-04-28
Last Modified: 2012-05-06
i need to change the default location for computers when they get added to the domain. currently they go to the computers OU. i have tried using the redircmp command but i want to move them to a OU that is 2 deep that also have spaces in thier name. example: OU named test test has another Ou in it called test computers.

i tried the command redircmp ou=test test, ou=test computers,dc=adtest,dc=local
but it can not read the spaces in the OU name
Question by:Cecilpierce
    LVL 14

    Expert Comment

    Well to deal with spaces, use some inverted commas e.g. ou="test test".

    Computers is not an OU, it's a special default container.  I've never heard of a way to make new machines default to somewhere else.  But there is a method called pre-staging.  You create a computer account in the OU you want, BEFORE you even join the computer to the domain.  Then when the computer joins with the same name as you specified, it goes to the "pre-staged" account that you made in the OU.  To make the pre-staged account just right-click, New.

    Author Comment

    i already tried the quotes it did not work!

    Accepted Solution

    i have solved it my self, it appeares you must use the redircmp command inside out
    eg: redircmp ou=test-computers,ou=test-test,dc=adtest,dc=local
    redircmp ou=test test, ou=test computers,dc=adtest,dc=local
    i also took out the spaces and replced them with a dash

    Author Comment

    and you can also have spaces in the name but you must reorder the ou's backwards and use the quotes to close the space
    LVL 38

    Expert Comment

    by:Philip Elder
    One XP Pro and Windows Vista it is done by using a netdom command:
    netdom Join PC01 /Domain:MySBSDomain.Local /OU:OU=SBSServers,OU=Computers,OU=MyBusiness,DC=Domain,DC=Local /UserD:MySBSAdmin /PasswordD:* (asterisk will prompt for the password)

    We batch the above and change the comp name to reflect the name of the computer and change the OU path to reflect the container we want the system in. Thus, we end up with a number of batch files depending on the OU.

    Note the above OU path is SBS related. Change accordingly for your domain OU structure.


    Author Comment

    all computers are joing to the domain using RIS cop name is alreay taken cares please close

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    The saying goes a bad carpenter blames his tools. In the Directory Services world a bad system administrator, well, even with the best tools they’re probably not going to become an all star.  However for the system admin who is willing to spend a li…
    Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
    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 from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
    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…

    794 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

    18 Experts available now in Live!

    Get 1:1 Help Now