Solved

Move computers to new domain

Posted on 2012-04-11
10
342 Views
Last Modified: 2013-04-29
Is there a script out there that will help me to move computers from one domain to another remotely? I have already used a script to change computer names remotely and now we are going to a new domain so I would like that same process if possible since most are at remote locations but still on the network through DMVPN.

Thank you
0
Comment
Question by:jlspencer
  • 4
  • 3
  • 3
10 Comments
 
LVL 17

Expert Comment

by:Anuroopsundd
ID: 37832195
0
 
LVL 17

Expert Comment

by:Anuroopsundd
ID: 37832206
0
 
LVL 17

Expert Comment

by:Anuroopsundd
ID: 37832211
0
Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
LVL 2

Expert Comment

by:Xinjitzu
ID: 37832224
It is possible as long as you have the netdom resource kit. Read this thread:
http://www.tek-tips.com/viewthread.cfm?qid=1240726

The 11th post down by markdmac uses vbscript and netdom to automate the whole thing. Very simple to, just edit the domain, username, password, and make a list called wslist.txt with your computers line-by-line
0
 

Author Comment

by:jlspencer
ID: 37839018
The ADMT process will not work for me at this time, right now I only need to move the computers to the new domain, the actual migration of accounts and groups ....will take place later. The new doamin resides on the same network so moving the computers will not cause any type of loss of access.

I tried the script  offered by   Xinjitzu  but that did not work, I ran into one error that required me to add the following line to the top of the script:

set-ExecutionPolicy RemoteSigned

According to what I found on the internet this line should have worked but the error remains. I'm sure I am missing something else.
0
 
LVL 2

Expert Comment

by:Xinjitzu
ID: 37840065
That script is vb i dont see any powershell in it so the executionpolicy shouldnt make a difference. Could you elaborate on the error your getting?
0
 

Author Comment

by:jlspencer
ID: 37846338
So is there powershell script that will accomplish my goal in moving a computer from one domain to  another remotely?
0
 
LVL 2

Expert Comment

by:Xinjitzu
ID: 37850848
probably but if the machines your working with don't all have powershell that may not be the best road to go down. Plus that vbscript should work fine. Could you tell us the error your getting?
0
 

Author Comment

by:jlspencer
ID: 37852159
Okay so I'm not running this from within power shell and now the results are as follows ...I get two command prompt windows that pop up and disappear very quickly but the domain on my computer which is the one I'm trying to change as a test remains the same. There are no pop-up errors to send you.
0
 
LVL 2

Accepted Solution

by:
Xinjitzu earned 500 total points
ID: 37870680
don't run it in powershell, run it from a command prompt. "wscript scriptname"
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
who removed AD Domain ID 9 45
windows 10 versions 3 34
Need to Obtain or Remove Password Protection From an Excel 2000 Workbook 6 56
Application Crash 2 23
You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question