Using dzjoin

The dzjoin command line program enables you to automatically join users to the zone in which their roles and rights are assigned, or to join them to a specific zone by zone name, when they log on to their computer. The dzjoin command line program is particularly useful for organizations that use non-persistent virtual desktop infrastructures.

The syntax for the dzjoin command is:

dzjoin [/c <domain controller>] [/d] [/u <username>] [/f] [/h] [/r [y|n|yes|no]] {/z <zonename> | /s | /v]

Note:   If the u option is specified but no password is found in the redirected input, you will be prompted for a password.

Use this option To do this

/c

Specify a domain controller to connect to.

/d

Retrieve zone data before restarting

/u

Specify the user name to join zone using custom credentials. The user name must be in the format: USER@DOMAIN or DOMAIN\USER. The credentials are for remote access only. For the password, you can specify by redirected input. Otherwise, this tool will prompt user for password.

/f

Suppress any warnings and/or questions.

/h

Displays the command help.

/r

Suppress the restart warning and specify to restart machine, if required, after joining zone. If no restart is required, this option is ignored. If no argument is provided, e.g. '/r', the default is to restart (example: '/r yes').

/z

Join a zone using the zone name. If the zone name is not unique, use the canonical name instead.

/s

Join to the zone where this computer is already pre-created in the zone or had previously been joined to the zone (but remotely left in a disconnected situation).

/v

Display the agent version.

Note:   You can also use the PowerShell command Join-CdmZone to join a zone.