WDS: Creating computer AD accounts under specific OU with down-level clients<p align=left>I think I have my terminology correct here <img alt=Wink src="http://forums.microsoft.com/MSDN/emoticons/emotion-5.gif"></p> <p align=left> </p> <p align=left>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.</p> <p align=left> </p> <p align=left>Is there a way this can be done for down-level clients e.g. Windows XP?</p>© 2009 Microsoft Corporation. All rights reserved.Fri, 16 Oct 2009 15:20:31 Zb29c7b6f-13ed-40d5-ba9c-7b40edde51a8http://social.technet.microsoft.com/Forums/en-US/winserversetup/thread/b29c7b6f-13ed-40d5-ba9c-7b40edde51a8#b29c7b6f-13ed-40d5-ba9c-7b40edde51a8http://social.technet.microsoft.com/Forums/en-US/winserversetup/thread/b29c7b6f-13ed-40d5-ba9c-7b40edde51a8#b29c7b6f-13ed-40d5-ba9c-7b40edde51a8Quitchhttp://social.technet.microsoft.com/Profile/en-US/?user=QuitchWDS: Creating computer AD accounts under specific OU with down-level clients<p align=left>I think I have my terminology correct here <img alt=Wink src="http://forums.microsoft.com/MSDN/emoticons/emotion-5.gif"></p> <p align=left> </p> <p align=left>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.</p> <p align=left> </p> <p align=left>Is there a way this can be done for down-level clients e.g. Windows XP?</p>Wed, 23 Apr 2008 09:26:50 Z2008-04-29T01:36:51Zhttp://social.technet.microsoft.com/Forums/en-US/winserversetup/thread/b29c7b6f-13ed-40d5-ba9c-7b40edde51a8#635d391c-d0d0-4283-be84-dc13edfea084http://social.technet.microsoft.com/Forums/en-US/winserversetup/thread/b29c7b6f-13ed-40d5-ba9c-7b40edde51a8#635d391c-d0d0-4283-be84-dc13edfea084Stuart Hudmanhttp://social.technet.microsoft.com/Profile/en-US/?user=Stuart%20HudmanWDS: Creating computer AD accounts under specific OU with down-level clients<p align=left><font face=Arial size=2></font> </p> <p>In the sysprep.inf file, you can use the following section :</p> <p align=left> </p> <p align=left><strong>[Identification]<br>    MachineObjectOU=&quot;OU=London,OU=UK,DC=example,DC=com&quot;</strong></p> <p> </p> <p align=left> </p> <p align=left>You could always pre-stage the computer acccounts in the domain, before you join them...that way, they will go where you want.</p> <p align=left> </p> <p align=left> </p> <p align=left>If you actually want <strong>ALL</strong> 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:</p> <p align=left> </p> <p align=left>SYNTAX:</p> <p align=left><strong>redircmp CONTAINER-DN</strong></p> <p align=left> </p> <p align=left>where CONTAINER-DN is the distinguished name of the container that will become the default location for newly created computer objects </p> <p align=left>Note: The domain functional level must be at least Windows Server 2003<br></p> <p align=left>for example <strong>REDIRCMP OU=London,OU=UK,DC=example,DC=com</strong></p> <p> </p> <p align=left> </p> <p align=left>Stuart Hudman</p> <p align=left> </p> <p align=left> </p> <p align=left> </p>Wed, 23 Apr 2008 23:42:16 Z2008-04-25T07:14:05Zhttp://social.technet.microsoft.com/Forums/en-US/winserversetup/thread/b29c7b6f-13ed-40d5-ba9c-7b40edde51a8#490c7031-f43a-4e4c-9cf6-4976f13889dahttp://social.technet.microsoft.com/Forums/en-US/winserversetup/thread/b29c7b6f-13ed-40d5-ba9c-7b40edde51a8#490c7031-f43a-4e4c-9cf6-4976f13889daChang Yinhttp://social.technet.microsoft.com/Profile/en-US/?user=Chang%20YinWDS: Creating computer AD accounts under specific OU with down-level clients<p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'">Hello,</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'">Many thanks to Stuart for sharing these information.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'">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.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'">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:</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'">Step 1.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'">=====</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'">Open the Windows Deployment Services console, in the left pane, navigate to &quot;Windows Deployment Services\&lt;ServerName&gt;&quot; 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.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'">Step 2.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'">=====</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'">Configure the sysprep.inf file. At a minimum, the sysprep.inf should look like:</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'">[Identification]</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'">DoOldStyleDomainJoin=Yes</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'">[Networking]</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'">[UserData]</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'">Put this sysprep.inf file under the path &quot;RemoteInstall\Images\&lt;ImageGroupName&gt;\&lt;ImageName&gt;\$OEM$\$1\Sysprep&quot; (you may need to create \&lt;ImageName&gt;\$OEM$\$1\Sysprep folder). Please confirm that this is the only unattend answer file that associated with the image.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'">For more details about this, please refer to:</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'">Automating the Domain Join and Computer Naming:</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'"><a title="http://technet2.microsoft.com/windowsserver2008/en/library/6636ff28-4dd4-4b7a-aba6-387655b602711033.mspx?mfr=true" href="http://technet2.microsoft.com/windowsserver2008/en/library/6636ff28-4dd4-4b7a-aba6-387655b602711033.mspx?mfr=true"><font color="#800080">http://technet2.microsoft.com/windowsserver2008/en/library/6636ff28-4dd4-4b7a-aba6-387655b602711033.mspx?mfr=true</font></a></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'">Now, during the deployment, the computer account will be generated automatically as the settings you specified in step 1.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'">Good luck.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'">Best regards,</span></p><span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'"></span> <p align=left><font face=Verdana size=2>Chang Yin</font></p>Fri, 25 Apr 2008 10:39:34 Z2008-04-29T01:36:51Zhttp://social.technet.microsoft.com/Forums/en-US/winserversetup/thread/b29c7b6f-13ed-40d5-ba9c-7b40edde51a8#f397dc45-a51c-4906-aa5d-28182ff9b537http://social.technet.microsoft.com/Forums/en-US/winserversetup/thread/b29c7b6f-13ed-40d5-ba9c-7b40edde51a8#f397dc45-a51c-4906-aa5d-28182ff9b537jamesreevehttp://social.technet.microsoft.com/Profile/en-US/?user=jamesreeveWDS: Creating computer AD accounts under specific OU with down-level clients<blockquote> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">Hello,</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">&nbsp;</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">Many thanks to Stuart for sharing these information.</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">&nbsp;</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">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.</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">&nbsp;</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">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:</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">&nbsp;</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">Step 1.</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">=====</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">&nbsp;</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">Open the Windows Deployment Services console, in the left pane, navigate to "Windows Deployment Services\&lt;ServerName&gt;" 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.</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">&nbsp;</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">Step 2.</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">=====</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">&nbsp;</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">Configure the sysprep.inf file. At a minimum, the sysprep.inf should look like:</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">&nbsp;</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">[Identification]</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">DoOldStyleDomainJoin=Yes</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">&nbsp;</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">[Networking]</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">&nbsp;</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">[UserData]</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">&nbsp;</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">Put this sysprep.inf file under the path "RemoteInstall\Images\&lt;ImageGroupName&gt;\&lt;ImageName&gt;\$OEM$\$1\Sysprep" (you may need to create \&lt;ImageName&gt;\$OEM$\$1\Sysprep folder). Please confirm that this is the only unattend answer file that associated with the image.</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">&nbsp;</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">For more details about this, please refer to:</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">&nbsp;</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">Automating the Domain Join and Computer Naming:</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US"><a title="http://technet2.microsoft.com/windowsserver2008/en/library/6636ff28-4dd4-4b7a-aba6-387655b602711033.mspx?mfr=true" href="http://technet2.microsoft.com/windowsserver2008/en/library/6636ff28-4dd4-4b7a-aba6-387655b602711033.mspx?mfr=true"><span style="color: #800080;">http://technet2.microsoft.com/windowsserver2008/en/library/6636ff28-4dd4-4b7a-aba6-387655b602711033.mspx?mfr=true</span></a></span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">&nbsp;</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">Now, during the deployment, the computer account will be generated automatically as the settings you specified in step 1.</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">&nbsp;</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">Good luck.</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">&nbsp;</span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 'Verdana', 'sans-serif'; FONT-SIZE: 10pt" lang="EN-US">Best regards,</span></p> <p align="left"><span style="font-family: Verdana; font-size: x-small;">Chang Yin</span></p> </blockquote> Hi <br />I want to get wds to create machine accounts in my ou created at root called "Imaged Machines". I have the option set under the WDS console to do this. However, it seems it's ignoring this setup and Sysprep itself is creating the machine name, and, I guess, creating the accont in the computers folder. I can tell this because the name format does not match the format selected in the wds console. <br />So I think this happens because I embed the sysprep.inf file in the image itself (copy to c:\sysprep) on the image before I sysprep the machine.<br />Is this where I'm going wrong?&nbsp; I guess I have to copy the sysprep file to the wds server and include it in the $OEM$ structure?<br /><br /><br /><br /> <hr class="sig" /> James Reeve MCSEFri, 16 Oct 2009 15:20:31 Z2009-10-16T15:28:02Z