Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Remotely join a machine to a new domain

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,3061
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Remotely join a machine to a new domain
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Remotely join a machine to a new domain - 5/19/2005 9:18:13 AM   
  Coquito

 

Posts: 29
Score: 0
Joined: 4/20/2005
From: USA
Status: offline
Can this be done?
 
 
Post #: 1
 
 Re: Remotely join a machine to a new domain - 5/19/2005 9:28:23 AM   
  netmarcos

 

Posts: 55
Score: 0
Joined: 12/7/2004
From: USA
Status: offline
Start with these links:

http://support.microsoft.com/?kbid=150493

http://www.microsoft.com/technet/prodtechnol/windowsserver2003/library/TechRef/9f921edc-87f5-460e-89ee-9ca56ec1d096.mspx

(in reply to Coquito)
 
 
Post #: 2
 
 Re: Remotely join a machine to a new domain - 5/19/2005 9:32:26 AM   
  netmarcos

 

Posts: 55
Score: 0
Joined: 12/7/2004
From: USA
Status: offline
A second option (if you are working with XP) would be to use something like this:

      

(in reply to Coquito)
 
 
Post #: 3
 
 Re: Remotely join a machine to a new domain - 5/19/2005 9:33:13 AM   
  Coquito

 

Posts: 29
Score: 0
Joined: 4/20/2005
From: USA
Status: offline
Thanks for the info netmarcos.

Old domain is NT4.0 and new domain is Windows 2003 Active Directory. Anyone ever do this?

(in reply to Coquito)
 
 
Post #: 4
 
 Re: Remotely join a machine to a new domain - 5/20/2005 3:29:44 AM   
  Coquito

 

Posts: 29
Score: 0
Joined: 4/20/2005
From: USA
Status: offline
Netmarcos,

I tried your script but it didnt work for me. I'll definitely give the Netdom command a shot.
Some more details:
All workstations are WinXP on an NT 4 domain. I need to move these machines to a new Active Directory Win2003 server domain remotely.

(in reply to Coquito)
 
 
Post #: 5
 
 Re: Remotely join a machine to a new domain - 5/20/2005 6:17:41 AM   
  Coquito

 

Posts: 29
Score: 0
Joined: 4/20/2005
From: USA
Status: offline
Netdom did the trick. Thanks for the help netmarcos.
Renamed, joined domain and rebooted. It was beautiful.

:)

(in reply to Coquito)
 
 
Post #: 6
 
 Re: Remotely join a machine to a new domain - 5/20/2005 7:00:01 AM   
  marcusrp

 

Posts: 145
Score: 0
Joined: 4/19/2005
From:
Status: offline
I have found the 'impersonationlevel' method to not work worth a darn...at least thats been my experience. I just shell out to netdom, it always works, plus you can pass variables from vbscript to netdom, although I found it to be a little tricky getting the syntax right.

(in reply to Coquito)
 
 
Post #: 7
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Remotely join a machine to a new domain Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts