Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


set computers default OU

Posted on 2009-04-28
Medium Priority
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
  • 4
LVL 14

Expert Comment

ID: 24256074
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

ID: 24256162
i already tried the quotes it did not work!

Accepted Solution

Cecilpierce earned 0 total points
ID: 24256231
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
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why


Author Comment

ID: 24256248
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 40

Expert Comment

by:Philip Elder
ID: 24257368
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

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

Featured Post

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Uncontrolled local administrators groups within any organization pose a huge security risk. Because these groups are locally managed it becomes difficult to audit and maintain them.
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Suggested Courses

564 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