Link to home
Start Free TrialLog in
Avatar of Cecilpierce
CecilpierceFlag for United States of America

asked on

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
Avatar of theras2000
theras2000
Flag of United States of America image

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.
Avatar of Cecilpierce

ASKER

i already tried the quotes it did not work!
ASKER CERTIFIED SOLUTION
Avatar of Cecilpierce
Cecilpierce
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
Avatar of 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.

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