We use multiple approaches to this problem,

1) Sysprep.inf :
You can provide the OU in which newly delpoyed computer account should
be created. We have developed our custom OS deployment solution, which
allows us to change the sysprep.inf file on the go, so no need to
rebuild the syspreped image whenever we want to make the change in
sysprep.

2) we use netdom.exe from 2003 resource kit,
which allows you to join the computer into specific OU.

REM *** Script start here ***
@echo off

setlocal
set /P CompName="Enter COMPUTERNAME to join to example domain : "
set /P JOINUSER="Enter DOMAIN USERNAME which has rights to join computer : " 
set /P LOCALADMIN="Enter LOCAL ADMINISTRATOR account username for
target computer : "

set OU="OU=Computers,OU=North,DC=Example,DC=com"

netdom join %CompName% /domain:example /UD:%JOINUSER% /PD:*
/UO:%LOCALADMIN% /PO:* /ou:%OU%
pause
REM *** Script end here ***




3) we have developed a script, which on weekly basis, lists computers
in default container and then finds its specific site from AD and
moves the computer account to its related OU. ( we have a mapping file
for sitename to OU mapping)


Following these three methods essentially keeps our default container
almost empty.



On 8/31/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> 
> 
> I go into the Computers container weekly and clean up the strays with a
> script, moving them to the right OU.
> 
> 
> Al Maurer 
> Service Manager, Naming and Authentication Services 
> IT | Information Technology 
> Agilent Technologies 
> (719) 590-2639; Telnet 590-2639 
> http://activedirectory.it.agilent.com 
> ---------------------------------------------- 
> "Cry 'Havoc!' and let slip the dogs of war"  - Anthony, in Julius Caesar III
> i. 
> ________________________________
> 
> 
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Dan Holme
> Sent: Tuesday, July 26, 2005 6:47 PM
> To: [email protected]
> Subject: RE: [ActiveDir] Redirecting PC's into the proper OU
> 
>  
> 
> There are two additional options for you:
> 
>  
> 
> 1)       If you are sysprepping your machines (or using an unattended answer
> file) XP supports a new parameter, MachineObjectOU, which you can put into
> the script.
> 
> 2)       *** I HAVE POSTED A CUSTOM TOOL *** that you can use… it's raw but
> quite functional and easy to tweak to your needs:
> http://intelliem.editme.com/depjoindomain 
> 
>  
> 
> Enjoy
> 
>  
> 
> Dan
> 
>  
> ________________________________
> 
> 
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> David Adner
> Sent: Friday, July 22, 2005 11:59 AM
> To: [email protected]
> Subject: RE: [ActiveDir] Redirecting PC's into the proper OU
> 
>  
> 
> You can change the default location (with redircomp), but it's a default,
> not something that can be unique per computer.  If you want to be able to
> create computer accounts in varying OU's then it's something you'll either
> have to script (such as with netdom /join /ou)  or you could pre-create the
> accounts in the proper OU's.  Or you can be stuck doing it manually.  :)
> 
>  
> ________________________________
> 
> 
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of P
> West
> Sent: Friday, July 22, 2005 1:48 PM
> To: [email protected]
> Subject: [ActiveDir] Redirecting PC's into the proper OU
> 
> 
> I know you can redirect computer account to a specified OU, using redircomp.
>  But what if you have multiple Ou's and want the pc to be added to the
> proper OU with some sort of logic.
> 
> 
>  
> 
> 
> Does this not exist or is this something that would need to be scripted?  Am
> I stuck doing this manually?
> 
> 
>  
> 
> 
>  
> 
> 
>  
> 
> 
> Thanks 
> 
> 
>  
> 
> 
> P west


-- 
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Fortune and Love befriend the bold"
~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to