A-Z List


Redircmp

Updated: April 17, 2012

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2008, Windows Server 2008 R2

Redirects the default container for newly created computers to a specified, target organizational unit (OU) so that newly created computer objects are created in the specific target OU instead of in CN=Computers.

CautionCaution
The CN=Computers container is a computer-protected object. For backward compatibility reasons, you cannot (and must not) remove it. However, you can rename this object.

You must run the redircmp command from an elevated command prompt. To open an elevated command prompt, click Start, right-click Command Prompt, and then click Run as administrator.

For examples of how to use this command, see Examples.

Syntax

redircmp <container-DN>
Parameters

 

Parameter Description

<container-DN>

The distinguished name of the target OU that will become the default location for newly created computer objects.

/?

Displays Help at the command prompt.

Remarks

  • Redircmp.exe is located in the C:\Windows\System32 folder.

  • You must be a member of the Domain Admins group or the Enterprise Admins group to use this tool.

  • The domain functional level must be Windows Server 2003 or Windows Server 2008.

  • Objects in the default containers are more difficult to manage because Group Policy cannot be applied directly to them. You can use the redircmp command to redirect computer objects to an OU container that can have Group Policy applied directly to it.

Examples

To redirect newly created computer objects to the newcomputerou OU in the domainname.com domain, at a command prompt, type the following command, and then press ENTER:

redircmp ou=newcomputerou,dc=domainname,dc=com 
Additional references

Command-Line Syntax Key

Redirecting the users and computers containers in Windows Server 2003 domains (http://go.microsoft.com/fwlink/?LinkId=148341)

Tags :


Community Content

BigBen2k
Checking setting
<p>One can check the current setting: From "Active Directory Users and Computers" (in "Advanced Features" view mode), open the properties of the domain, select the "Attribute Editor" tab, and look for an entry named "WellKnownObjects". The value has four keys (default?), including B:32:AA312825768811D1ADED00C04FD8D5CD (the 2nd one, in my case) which is followed by the value for the current default Computer container (or an alternate OU). The syntax for the value is the same as for the redircmp command.</p> <p>[note: applies to Server 2008 R2 only, not verified for any others]<br /></p> <p>I do not yet know the command line to do this.<br /></p>
Tags : redircmp

GerardD
Suggestion for next version
<p>Please could we have some way of displaying which OU the redircmp or rediruser commands are currently pointing at. 2003, 2003R2, 2008, 2008R2 and I still can't see any easy way of doing this. Maybe using the command with no switches should then display the current state of redirect and its location?</p> <p> <br /> </p>

Justinha
Redircmp
<p>Removed output for DIR command. </p>
Tags : contentbug

_Konsultancy
redircmp /?
<pre>Usage: redircmp CONTAINER-DN where CONTAINER-DN is the distinguished name of the container that will become the default location for newly created computer objects Note: The domain functional level must be at least Windows Server 2003 </pre> <br />For more information (including redirusr.exe) visit: <mtps:InstrumentedLink NavigateUrl="http://technet.microsoft.com/en-us/library/cc732009.aspx" runat="server" xmlns:mtps="http://msdn2.microsoft.com/mtps">http://technet.microsoft.com/en-us/library/cc732009.aspx</mtps:InstrumentedLink>
Tags : redircmp

Thomas Lee
redircmp?
<p>redircmp what this 4?</p> <p> </p> <p> <em>[tfl] see below</em> </p>
Tags : contentbug

Page view tracker