DESKTOP

Windows Server 2008 : Working with Active Directory Accounts - Redirecting Computer Accounts, Redirecting User Accounts

10/28/2013 7:27:24 PM

1. Redirecting Computer Accounts

When a computer joins a domain, the computer account is added to the Computers container by default; however, you can change the default behavior with the redircmp command. The basic syntax is

redircmp target-DN

Tip

The target-DN can be any container or OU but is typically an OU.


For example, if you want new computers to be placed into an OU you’ve created called New Computers (shown in Figure 1), you can use the following command:

redircmp "ou=new computers,dc=pearson,dc=pub"

Figure 1. New Computers OU in ADUC

The primary reason to do this is to control the new computers with a Group Policy Object (GPO). You can create a GPO that configures security settings or install software for all new computers placed into this OU. As soon as a computer joins the domain, the GPO applies these settings.

Tip

You can link a GPO to an OU but not to a container such as the Computers container or the Users container.

2. Redirecting User Accounts

You can also redirect new user accounts that are created with the net user command. The basic syntax to redirect user accounts is

redirusr target-DN

Tip

If the user account is created with a DN (such as with dsadd, csvde, or ldifde), the target DN is already specified. The redirusr command does not override these commands. However, because the net user command doesn’t specify a DN, the redirusr command redirects these user accounts.


For example, the following command redirects all user accounts created with the net user command to the Sales OU:

redirusr "ou=sales,dc=pearson,dc=pub"

Most methods of creating user accounts identify the target location. For example, if you’re using ADUC, you simply right-click over the target OU and select New, User. If you’re using csvde or ldifde, the target OU is included in the DN.

It’s not as common to create accounts with the net user command, but it can be done. The basic syntax is

net user username [password] /add

For example, the following command creates an account for a user named Maria:

net user Maria P@ssw0rd /add

Tip

If you run the net user command on a DC, it adds the account to AD. If you run it on a member server or a standalone system, it adds it as a local account.

Other  
  •  Windows Server 2008 : Working with Active Directory Accounts - Using csvde to Export and Import Accounts
  •  Windows Server 2008 : Working with Active Directory Accounts - Using ldifde to Export, Import, and Delete Accounts
  •  Automating Windows 7 Installation : Preparing a System with Sysprep
  •  Automating Windows 7 Installation : Creating Bootable WinPE Media
  •  Automating Windows 7 Installation : Creating Your First Image, Using the Windows Automated Installation Kit
  •  Automating Windows 7 Installation : Getting Familiar with Microsoft Images (part 2) - Creating Operating System Images
  •  Automating Windows 7 Installation : Getting Familiar with Microsoft Images (part 1) - Creating a Bootable VHD Image
  •  Windows 8 : Scheduling Maintenance Tasks - Viewing and Managing Tasks on Local and Remote Systems
  •  Windows 8 : Detecting and Resolving Windows 8 Errors - Using the Event Logs for Error Tracking and Diagnosis, Viewing and Managing the Event Logs
  •  Windows 8 : Using Remote Assistance to Resolve Problems
  •  
    Top 10
    Extending LINQ to Objects : Writing a Single Element Operator (part 2) - Building the RandomElement Operator
    Extending LINQ to Objects : Writing a Single Element Operator (part 1) - Building Our Own Last Operator
    3 Tips for Maintaining Your Cell Phone Battery (part 2) - Discharge Smart, Use Smart
    3 Tips for Maintaining Your Cell Phone Battery (part 1) - Charge Smart
    OPEL MERIVA : Making a grand entrance
    FORD MONDEO 2.0 ECOBOOST : Modern Mondeo
    BMW 650i COUPE : Sexy retooling of BMW's 6-series
    BMW 120d; M135i - Finely tuned
    PHP Tutorials : Storing Images in MySQL with PHP (part 2) - Creating the HTML, Inserting the Image into MySQL
    PHP Tutorials : Storing Images in MySQL with PHP (part 1) - Why store binary files in MySQL using PHP?
    REVIEW
    - First look: Apple Watch

    - 3 Tips for Maintaining Your Cell Phone Battery (part 1)

    - 3 Tips for Maintaining Your Cell Phone Battery (part 2)
    VIDEO TUTORIAL
    - How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 1)

    - How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 2)

    - How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 3)
    Popular Tags
    Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Indesign Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe After Effects Adobe Photoshop Adobe Fireworks Adobe Flash Catalyst Corel Painter X CorelDRAW X5 CorelDraw 10 QuarkXPress 8 windows Phone 7 windows Phone 8 BlackBerry Android Ipad Iphone iOS