You would use the NetDom.exe utility from the resource kit. Version 1.8 is available for download at MS site. Example syntax is as follows:
netdom /Domain:NEWDOMAIN MEMBER %COMPUTERNAME% /JOINDOMAIN
This assumes that the account used to start the script has rights to add machines to the new domain.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.