I used a batch to prompt on which domain and then used the netdom util to join that domain based on the reply. choice /C:FS /n Workstation Type [A]Domain, Domain: IF ERRORLEVEL 255 GOTO ABORT IF ERRORLEVEL 2 GOTO DOMAINB IF ERRORLEVEL 1 GOTO DOMAINA goto END :DOMAINB set DOMAIN=DOMAINB goto END :DOMAINA set DOMAIN=DOMAINA goto END :END ECHO Adding %ComputerName% to %DOMAIN%.local NETDOM.EXE JOIN %ComputerName% /Domain:%DOMAIN% /OU:OU=Workstations,DC=DOMAINA,DC=local /UserD:domain\Administrator /PasswordD:password /REBoot 30 :ABORT exit