In summary, here's how you use djoin to join a computer to a domain:
- Logon to a system that is a member of the domain with an account that is allowed to join computers to the domain
- Use djoin.exe to create a text file (the blob) that contains all information for the computer to join the domain when it is online
- On the new computer use djoin.exe to import the blob.
- Reboot the new computer when it’s connected to the network
By default, computer accounts are created in the Computers OU, however you can, create a new OU and make sure the account that you run djoin under has sufficient rights to it.
To provision a new computer, use the following command: djoin /provision /domain /machine /savefile blob.txt
The command creates a new computer object and a file called blob.txt.
Optionally you can specify the OU using the parameter /Machineou else the default Computers OU is used. If the computer account object is already created, you can use the /reuse option.
If your domain controller is not yet running Windows Server 2008 R2, use the /downlevel command.