• Upgrade your Internet Experience
  • Sign in
  • Microsoft.com
  • United States (English)
    Brasil (Português)Česká republika (Čeština)Deutschland (Deutsch)España (Español)France (Français)Italia (Italiano)Россия (Русский)대한민국 (한국어)中华人民共和国 (中文)台灣 (中文)日本 (日本語)香港特别行政區 (中文)
 
 
Windows Server TechCenter
 
 
Home
 
 
2008
 
 
2003
 
 
2000
 
 
Library
 
 
Forums
 
 
 
Windows Server TechCenter > Windows Server Forums > Setup Deployment > WDS: Creating computer AD accounts under specific OU with down-level clients
Ask a questionAsk a question
Search Forums:
  • Search Setup Deployment Forum Search Setup Deployment Forum
  • Search All Windows Server Forums Search All Windows Server Forums
  • Search All Microsoft TechNet Forums Search All Microsoft TechNet Forums
 

AnswerWDS: Creating computer AD accounts under specific OU with down-level clients

  • Wednesday, April 23, 2008 9:26 AMQuitch Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0

    I think I have my terminology correct here Wink

     

    With Windows Vista you can create an unattend.xml file which will allow them to be joined to the domain and filed under a particular OU immediately. Very handy for the application of GPOs during first boot.

     

    Is there a way this can be done for down-level clients e.g. Windows XP?

    • ReplyReply
    • QuoteQuote
     

Answers

  • Wednesday, April 23, 2008 11:42 PMStuart Hudman Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Vote As Helpful
    0

     

    In the sysprep.inf file, you can use the following section :

     

    [Identification]
        MachineObjectOU="OU=London,OU=UK,DC=example,DC=com"

     

     

    You could always pre-stage the computer acccounts in the domain, before you join them...that way, they will go where you want.

     

     

    If you actually want ALL computer accounts to be created in a certain OU (oppose to the default Computer container), you can use the REDIRCMP command which will make the defined OU, the default. You only need to do this once in your domain:

     

    SYNTAX:

    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

    for example REDIRCMP OU=London,OU=UK,DC=example,DC=com

     

     

    Stuart Hudman

     

     

     

    • ReplyReply
    • QuoteQuote
     
  • Friday, April 25, 2008 10:39 AMChang YinMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Vote As Helpful
    0

    Hello,

     

    Many thanks to Stuart for sharing these information.

     

    Yes, you can use the sysprep.inf file to join your computer to a specified OU after you add that entry into the file. However, please note that in this way, the computer name will not be generated into a customized format automatically. So you may need to manually name it during the installation.

     

    Just for your reference, if you want the computer name to be generated automatically and the computer to be added into the specified OU, and if you don't want to create the computer account manually in the Active Directory, you can try the following steps:

     

    Step 1.

    =====

     

    Open the Windows Deployment Services console, in the left pane, navigate to "Windows Deployment Services\<ServerName>" node, and right-click this node. Click Properties and then click the Directory Services tab. On this tab, you can change the computer naming format and set the location where client computer accounts will be created.

     

    Step 2.

    =====

     

    Configure the sysprep.inf file. At a minimum, the sysprep.inf should look like:

     

    [Identification]

    DoOldStyleDomainJoin=Yes

     

    [Networking]

     

    [UserData]

     

    Put this sysprep.inf file under the path "RemoteInstall\Images\<ImageGroupName>\<ImageName>\$OEM$\$1\Sysprep" (you may need to create \<ImageName>\$OEM$\$1\Sysprep folder). Please confirm that this is the only unattend answer file that associated with the image.

     

    For more details about this, please refer to:

     

    Automating the Domain Join and Computer Naming:

    http://technet2.microsoft.com/windowsserver2008/en/library/6636ff28-4dd4-4b7a-aba6-387655b602711033.mspx?mfr=true

     

    Now, during the deployment, the computer account will be generated automatically as the settings you specified in step 1.

     

    Good luck.

     

    Best regards,

    Chang Yin

    • ReplyReply
    • QuoteQuote
     

All Replies

    Need Help with Forums? (FAQ)
     
    © 2009 Microsoft Corporation. All rights reserved.
    Manage Your Profile
    |
    Contact Us
    |
    Newsletter
    |
    Terms of Use
    |
    Trademarks
    |
    Privacy Statement