Join domain batchfile

With the following script you can yoin a workstation to a domain. Copy the script into notepad and save it as an batchfile.

@echo off

C:
cd \Temp\Tools
netdom.exe JOIN %COMPUTERNAME% /Domain:corp.local

 /UserD:WSimport /PasswordD:*** /OU:”OU=Workstations,DC=corp,DC=local”

Make sure the user you use in the script has administrative rights, so this user can join the workstations into de domain corp.local.

Leave a Reply