+ Post New Thread
Results 1 to 5 of 5
Windows Server 2008 R2 Thread, Script to join new domain in Technical; Have set up a new virtual network based on server 2008 R2 in vmware Have migrated user accounts and all ...
  1. #1

    Join Date
    Apr 2008
    Location
    Notts
    Posts
    55
    Thank Post
    1
    Thanked 2 Times in 2 Posts
    Rep Power
    14

    Script to join new domain

    Have set up a new virtual network based on server 2008 R2 in vmware

    Have migrated user accounts and all is working well

    Have set up trust between old and new domains

    We are now ready to remove the fully serviced packed XP client machines from the old domain and then rejoin them to the new.

    In the past I have just moved them off old domain into workgroup and then from workgroup into new domain

    This time we have over 300 machines

    Is there any easier way?

    We really want to decomission the old domain when the new one is up and running

    Thanks in advance

  2. #2

    Join Date
    Jan 2006
    Location
    Surburbia
    Posts
    2,178
    Thank Post
    74
    Thanked 307 Times in 243 Posts
    Rep Power
    115
    Can't say I've ever used it for this, but take a look at the netdom 'move' option. [That page refers to the 2K8 "built-in" one, but IIRC it's in 2k3 support tools - google will tell you]

  3. #3

    Join Date
    Sep 2006
    Location
    Essex
    Posts
    785
    Thank Post
    1
    Thanked 34 Times in 32 Posts
    Rep Power
    24
    Can be done using Netdom and a text file containing the computer names (one on each line) I have a working script somewhere and will try and dig it out. Was something like this below.

    Code:
    for /f "eol=; tokens=1,2*" %%i in (comperts.txt) do NETDOM MOVE /DOMAIN:TargertDomain %%i /Ud:domain\user /Pd:<password> /Uo:%%i\Administrator /Po:<password>
    pause
    The computer name is stored in the variable %%i from the text file.

    Code:
    NETDOM Command Switches
     
    /domain
     Identifies the target domain.
     
    /OU:ou_path
     Specifies the target OU.
     
    /Ud:User
     Indicates the user account used to make the connection with the target domain.
     
    Pd:{Password|*}
     Enters the password for the user account used to connect to the destination domain; if you use *, NETDOM prompts for the password.
     
    /Uo:User
     Identifies the user account used to make the connection to the source domain.
     
    /Po:{Password|*}
     Enters the password for the user account used to connect to the original domain; if you use *, NETDOM prompts for the password.
     
    /Reboot:[time_in_seconds]
     Specifies that the computer being moved should shut down and reboot automatically in the given number of seconds after the move operation
    Last edited by djm968; 1st July 2010 at 09:26 PM.

  4. #4

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,158
    Thank Post
    116
    Thanked 529 Times in 452 Posts
    Blog Entries
    2
    Rep Power
    124
    Not sure if it's too late, but Microsoft have an Active Directory Migration Toolkit which will do all of this for you - http://www.microsoft.com/downloads/d...displaylang=en

  5. Thanks to srochford from:

    mthomas08 (7th April 2011)

  6. #5

    Join Date
    Sep 2006
    Location
    Essex
    Posts
    785
    Thank Post
    1
    Thanked 34 Times in 32 Posts
    Rep Power
    24
    Quote Originally Posted by srochford View Post
    Not sure if it's too late, but Microsoft have an Active Directory Migration Toolkit which will do all of this for you - http://www.microsoft.com/downloads/d...displaylang=en
    Agreed. You will need to use latest version of the Active Directory Migration Tool version 3.2 - as ADMT 3.1 will not work on 2008-R2 DC's

    Download details: ADMT v3.2

  7. Thanks to djm968 from:

    mthomas08 (7th April 2011)



SHARE:
+ Post New Thread

Similar Threads

  1. script to rename computer and join it to domain ...
    By RabbieBurns in forum Scripts
    Replies: 22
    Last Post: 2nd May 2013, 12:08 PM
  2. [Fog] Rename w/ serial # and join domain
    By Onslow in forum O/S Deployment
    Replies: 15
    Last Post: 20th July 2010, 10:42 AM
  3. [SIMS] Join server to new domain
    By Gatt in forum MIS Systems
    Replies: 6
    Last Post: 26th May 2010, 10:18 PM
  4. No Domain Join during Setup
    By Nick_Parker in forum Windows 7
    Replies: 19
    Last Post: 24th August 2009, 02:13 PM
  5. Cannot join domain, dns problems
    By pod in forum Windows Server 2000/2003
    Replies: 0
    Last Post: 14th February 2009, 04:04 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •