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


Specify a domain controller to connect to.


Retrieve zone data before restarting


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.


Suppress any warnings and/or questions.


Displays the command help.


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').


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


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).


Display the agent version.

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