Cecilpierce
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=loc al
but it can not read the spaces in the OU name
i tried the command redircmp ou=test test, ou=test computers,dc=adtest,dc=loc
but it can not read the spaces in the OU name
ASKER
i already tried the quotes it did not work!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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
One XP Pro and Windows Vista it is done by using a netdom command:
netdom Join PC01 /Domain:MySBSDomain.Local /OU:OU=SBSServers,OU=Compu ters,OU=My Business,D C=Domain,D C=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
netdom Join PC01 /Domain:MySBSDomain.Local /OU:OU=SBSServers,OU=Compu
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
ASKER
all computers are joing to the domain using RIS cop name is alreay taken cares please close
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.