Use netdom to join the machine to the domain, or precreate the computer account. When you use netdom you can specify an OU.
 
Phil

 
On 2/27/06, Harding, Devon <[EMAIL PROTECTED]> wrote:
If you're joining a new server to a domain (My Computer, Properties) how would you make it create the computer account in a specified OU, rather than the Computers container?

-Devon

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ] On Behalf Of [EMAIL PROTECTED]
Sent: Monday, February 27, 2006 12:00 PM
To: [email protected]
Subject: RE: [ActiveDir] Auto move computer

You are misaligning priorities here. Start putting something in place to
create computers in the correct OU the first time. For all things already
created up to this time, try moving them all to the correct OU in one
exercise.


Sincerely,

Dèjì Akómöláfé, MCSE+M MCSA+M MCT
Microsoft MVP - Directory Services
www.readymaids.com - we know IT
www.akomolafe.com
Do you now realize that Today is the Tomorrow you were worried about
Yesterday?  -anon

________________________________

From: [EMAIL PROTECTED] on behalf of Harding, Devon
Sent: Mon 2/27/2006 8:07 AM
To: [email protected]
Subject: RE: [ActiveDir] Auto move computer



Well, the script should check a particular OU (OU=Servers,DC=Domain,DC=Com).
If the server is in that OU (and theoretically can only exits in one
container/OU), then Quit

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of
[EMAIL PROTECTED]
Sent: Monday, February 27, 2006 10:34 AM
To: [email protected]
Subject: RE: [ActiveDir] Auto move computer

The issue will be how does the script know which OU the server should be in,
unless of course all servers live in the same OU :)

Does the naming convention correlate to the destination OU. I'm not sure we
know enough about your requirements and env yet to make a definitive stab at
this one :)

neil


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] ] On Behalf Of Harding, Devon
Sent: 27 February 2006 15:27
To: [email protected]
Subject: RE: [ActiveDir] Auto move computer

This is basically what I want to happen:

Admin logs on to server. Script checks whether admin is logging onto a server
in the local domain.  If not, Quit.  If it is, script checks if server is in
the correct OU.  If not, move server to correct OU.  If it is, Quit.

That's it.


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] ] On Behalf Of Harding, Devon
Sent: Friday, February 24, 2006 6:12 PM
To: [email protected]
Subject: RE: [ActiveDir] Auto move computer

Just servers for now.  We'll do workstations later.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] ] On Behalf Of [EMAIL PROTECTED]
Sent: Friday, February 24, 2006 5:05 PM
To: [email protected]
Subject: RE: [ActiveDir] Auto move computer

What would? You mean you only plan to move servers and not workstations? Or
do you mean that the script would only move servers and not workstation? If
you are talking about the script, I don't see why it would not move anything
you tell it to move.

This here
http://www.akomolafe.com/Portals/1/Move%20Computers%20to%20Specific%20OUs%20b
ased%20on%20their%20IP.txt will give you an idea of post-join mass movement
of computers. If I were to rewrite that today, I'd not use expensive query or
ping. But it's a start.

Sincerely,

Dèjì Akómöláfé, MCSE+M MCSA+M MCT
Microsoft MVP - Directory Services
www.readymaids.com - we know IT
www.akomolafe.com
Do you now realize that Today is the Tomorrow you were worried about
Yesterday?  -anon

________________________________

From: [EMAIL PROTECTED] on behalf of Harding, Devon
Sent: Fri 2/24/2006 12:37 PM
To: [email protected]
Subject: RE: [ActiveDir] Auto move computer



This would only be for servers, not workstations.



________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Ulf B. Simon-Weidner
Sent: Friday, February 24, 2006 1:49 PM
To: [email protected]
Subject: RE: [ActiveDir] Auto move computer



Hi Devon,



you know that you are able to change the default location where computer
accounts are created when joining a domain in a Windows Server 2003 Active
Directory with redircmp.exe?



However - here's a script which moves a computer to another OU:

http://www.microsoft.com/technet/scriptcenter/scripts/ad/computer/cptrvb11.ms
px

Gruesse - Sincerely,

Ulf B. Simon-Weidner

MVP-Book "Windows XP - Die Expertentipps": http://tinyurl.com/44zcz
<http://tinyurl.com/44zcz>
Weblog: http://msmvps.org/UlfBSimonWeidner
< http://msmvps.org/UlfBSimonWeidner>
Website: http://www.windowsserverfaq.org <http://www.windowsserverfaq.org/>

Profile:
http://mvp.support.microsoft.com/profile="">







________________________________


       From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Harding, Devon
       Sent: Friday, February 24, 2006 6:46 PM
       To: [email protected]
       Subject: [ActiveDir] Auto move computer

       Does any have a script that will auto-move a server into another OU
after joining a domain?



       Devon Harding

       Windows Systems Engineer

       Southern Wine & Spirits - BSG

       954-602-2469




________________________________





       __________________________________
       This message and any attachments are solely for the intended
       recipient and may contain confidential or privileged information.
       If you are not the intended recipient, any disclosure, copying, use
       or distribution of the information included in the message and any
       attachments is prohibited. If you have received this communication
       in error, please notify us by reply e-mail and immediately and
       permanently delete this message and any attachments. Thank You.

List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/



PLEASE READ: The information contained in this email is confidential and
intended for the named recipient(s) only. If you are not an intended
recipient of this email please notify the sender immediately and delete your
copy from your system. You must not copy, distribute or take any further
action in reliance on it. Email is not a secure method of communication and
Nomura International plc ('NIplc') will not, to the extent permitted by law,
accept responsibility or liability for (a) the accuracy or completeness of,
or (b) the presence of any virus, worm or similar malicious or disabling
code in, this message or any attachment(s) to it. If verification of this
email is sought then please request a hard copy. Unless otherwise stated
this email: (1) is not, and should not be treated or relied upon as,
investment research; (2) contains views or opinions that are solely those of
the author and do not necessarily represent those of NIplc; (3) is intended
for informational purposes only and is not a recommendation, solicitation or
offer to buy or sell securities or related financial instruments.  NIplc
does not provide investment services to private customers.  Authorised and
regulated by the Financial Services Authority.  Registered in England
no. 1550505 VAT No. 447 2492 35.  Registered Office: 1 St Martin's-le-Grand,
London, EC1A 4NP.  A member of the Nomura group of companies.

List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/


List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to