Provisioning a offline domain joined file for a computer:
- Logon to a writeable Domain Controller
- Open the command prompt (cmd)
- Use command:
Djoin /provision /domain <mydomain.com> /machine <computername> /savefile <filename.txt> /machineou <Computers> /dcname <DC1> /reuse
Joining a computer to the Domain offline:
Djoin /requestodj /loadfile <filename.txt> /windowspath <%windir%> /localos
The computer will restart and when it is up, the computer is on the domain.
Reference: https://technet.microsoft.com/en-us/library/offlinedomain-join-djoin-step-by-step(v=ws.10).aspx