// NetBIOS domain name of domain that listed machines should join SET ToJoin=D2
// User account used to make the connection with the domain specified by /Domain (the domain admin account) SET UserD=%ToJoin%\administrator
// Password of the user account specified by /UserD (password for domain admin account)
SET PwD=password
// Name of the workstation or member server to be joined SET ToBeJoined=%col1%
// User account used to make the connection with the machine to be joined (workstation local admin account) SET UserO=%ToBeJoined%\administrator
// Password of the user account specified by /UserO (password for workstation local admin account)
SET PwO=%col2%
// OU in which to create machine account, RFC1779 format, here domain=d2.acme.com, ou=MyOU SET OU=ou=MyOU,dc=d2,dc=acme,dc=com
[Settings_End]
// Machines section: NetBIOS DC name of domain to join