You may be on your own there Brian...
 
If you really start looking at writing something check out the API call NetJoinDomain.
 
 
 
--
O'Reilly Active Directory Third Edition - http://www.joeware.net/win/ad3e.htm 
 
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Desmond
Sent: Thursday, May 04, 2006 7:25 PM
To: [email protected]
Subject: [ActiveDir] Remotely Migrating Machines

I’ve got a good sized chunk of PCs which are joined to domains which no longer exist. I’d like to migrate those machines into a domain that does exist. I have local admin access to the boxes. I’d also like to do this remotely (either running the commands remotely or psexec’ing something out to the boxes).

 

The obvious choice for this is netdom, and I’ve done this successfully before with the caveat that the old domain has a PDC or DC available. All of the netdom commands, remove and move both want to contact the old domain and delete the computer from that, so they fail. There doesn’t seem to be a force switch. This process works fine when you go in the My Computer Properties dialog and do the operations.

 

Does anyone know how to do this or do I need to look into writing my own wrapper for the APIs?

 

Thanks,
Brian Desmond

[EMAIL PROTECTED]

 

c - 312.731.3132

 

 

 

Reply via email to