set computers default OU

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
CecilpierceAsked:
Who is Participating?
 
CecilpierceAuthor Commented:
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
not
redircmp ou=test test, ou=test computers,dc=adtest,dc=local
i also took out the spaces and replced them with a dash
0
 
theras2000Commented:
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.
0
 
CecilpierceAuthor Commented:
i already tried the quotes it did not work!
0
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

 
CecilpierceAuthor Commented:
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
0
 
Philip ElderTechnical Architect - HA/Compute/StorageCommented:
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.

Philip
0
 
CecilpierceAuthor Commented:
all computers are joing to the domain using RIS cop name is alreay taken cares please close
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.