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