Friday, January 13, 2017

Set default OU for new Computers in AD

Log into a Domain Controller as a Domain Admin
Open a CMD prompt
 
To change the default container for computer objects, enter:
 
ReDirCmp Container-DN
 
where Container-DN is the DistinguishedName name of the container that will become the default location for newly created computer objects.
 
For example:
 
   redircmp "OU=New Computers,DC=mydomain,DC=com"

 

To revert to the default settings you will need to run the following commands:
 
   redircmp cn=computers,DC=company,dc=com"
 
Note: the domain functional level must be at least Windows Server 2003

 

No comments:

Post a Comment