Usage: djoin.exe /OPTIONS /PROVISION - Provision a computer account in the domain /DOMAIN - of the domain to join /MACHINE ...

Usage: djoin.exe [/OPTIONS]

  /PROVISION  - Provision a computer account in the domain
      /DOMAIN  -  of the domain to join
      /MACHINE  -  of the computer joining the domain
      /MACHINEOU  - Optional  where the account is created
      /DCNAME  - Optional  to target for account creation
      /REUSE - Reuse any existing account (password will be reset)
      /SAVEFILE  - Save provisioning data to a file at 
      /NOSEARCH - Skip account conflict detection, requires DCNAME (faster)
      /DOWNLEVEL - Support using a Windows Server 2008 DC or earlier
      /PRINTBLOB - Return base64 encoded metadata blob for an answer file
      /DEFPWD - Use default machine account password (not recommended)
      /ROOTCACERTS - Opt. include root Certificate Authority certificates.
      /CERTTEMPLATE  - Optional  of machine certificate template.
                             Includes root Certificate Authority certificates.
      /POLICYNAMES  - Opt. semicolon-separated list of policy names.
                               Each name is the displayName of the GPO in AD.
      /POLICYPATHS  - Opt. semicolon-separated list of policy paths.
                               Each path is a path to a registry policy file.

  /REQUESTODJ  - Request offline domain join at next boot
      /LOADFILE  -  specified previously via /SAVEFILE
      /WINDOWSPATH  -  to the Windows directory in an offline image
      /LOCALOS - Allows /WINDOWSPATH to specify the locally running OS.
                 This command must be run as a local Administrator.
                 This option requires a reboot for changes to be applied.
      
Examples:

To provision a computer account in the domain:
djoin.exe /PROVISION /DOMAIN  /MACHINE 
          /SAVEFILE 
          Note: Other parameters are optional
          
To request the local machine to perform an offline domain join:
djoin.exe /REQUESTODJ /LOADFILE  /WINDOWSPATH 
          Note: Other parameters are optional