Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Domain Change

Status
Not open for further replies.

Matic

MIS
Oct 31, 2002
14
US
We have recently completed our migration from NT4 to Win2k native mode. Due to recent changes in the organization we are now being directed to migrate from our own little corner of the world (meaning our own seperate domain) into the organizations Win2k domain.

Can someone point me to some relevent reading material to help me figure out how this needs to go down?

 
If you mean a child domain, then it needs to be done upstream.

Organiziationsdomain->ourownseperatdomain would be
ourownseperatedomain.organiziationsdomain.com. If this is what they want, they have to originate it. If not, please clarify.

Glen A. Johnson
"Give the laziest man the hardest job and he'll find the easiest way to do it."

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Is your own domain a Win2K domain or still NT4?

If you need to join the corporate domain and simply migrate your servers to that domain, then you are probably going to want to use ADMT to migrate your user accounts and machine accounts. You can then move your servers over easily enough, just run DCPROMO to make them member servers, then join them to the new domain and if necessary run DCPROMO again.

You can script the workstations disjoining and joining from old to new domains. The following script is one I have used to do this exact job. You will need a copy of NETDOM from the resource kit (available free from ms website).

I have bolded the sections you will need to change.

*NOTE: This script will only run against a list of workstations. Create a file wslist.txt with each computername on one line. Execute the script in the same directory as netdom and wslist.txt.


'==========================================================================
'
' NAME: NetDomJoinWorkstations
'
' AUTHOR: Mark D. MacLachlan , The Spider's Parlor
' URL: ' DATE : 6/24/2003
'
' COMMENT: Joins computers to a new domain. Edit domain name, user ID and passwords below
' Modification 7/28/2003 to include Remove command. Suggest synchronizing old and new server passwords
'
'==========================================================================

On Error Resume Next

'open the file system object
Set oFSO = CreateObject("Scripting.FileSystemObject")
set WSHShell = wscript.createObject("wscript.shell")
'open the data file
Set oTextStream = oFSO.OpenTextFile("wslist.txt")
'make an array from the data file
RemotePC = Split(oTextStream.ReadAll, vbNewLine)
'close the data file
oTextStream.Close

For Each strWorkstation In RemotePC
'Do something useful with strWorkstation
Call WSHShell.Run(&quot;cmd.exe /c NETDOM REMOVE &quot; & strWorkstation &&quot;/Domain:<domain> /UserD:<user> /PasswordD:<password> UserO:<user> /PasswordO:<password> /REBoot:30000&quot;)
Wscript.sleep 15000
Call WSHShell.Run(&quot;cmd.exe /c NETDOM JOIN &quot; & strWorkstation &&quot;/Domain:<domain> /UserD:<user> /PasswordD:<password> UserO:<user> /PasswordO:<password> /REBoot:0&quot;)

Next

'==========================================================================

I hope you find this post helpful. Please let me know if it was.

Regards,

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top