Redirusr


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

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

Caution

The CN=Users 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 redirusr 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


Copy Code

redirusr <container-DN>

Parameters

Parameter

Description

<container-DN>

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

/?

Displays Help at the command prompt.

Remarks

Examples

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


Copy Code

redirusr ou=newuserou,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)