Use the select_dz_command command to retrieve a UNIX command in the currently selected zone from Active Directory. This command stores the selected UNIX command in memory, and makes it the currently selected UNIX command for subsequent ADEdit commands. The UNIX command remains selected until you select another UNIX command or zone, delete the UNIX command, or end the ADEdit session.

If you use ADEdit commands such as set_dzc_field to change settings for the selected UNIX command, you must save the selected UNIX command using the save_dz_command command for your changes to take effect in Active Directory. If you select another UNIX command or end the ADEdit session before saving the currently selected UNIX command, your changes will be lost.

You can only use the select_dz_command command to select UNIX commands if the currently selected zone is a classic4 or hierarchical zone. The command does not work for other types of zones.

Zone type

Classic and hierarchical


select_dz_command command




This command takes no options.


This command takes the following arguments:

Argument Type Description



Required. Specifies the name of the UNIX command to select.

Return value

This command returns nothing if it runs successfully.


select_dz_command account_manager

This example looks for the UNIX command named “account_manager” in the current zone and, if found, selects it as the current UNIX command.

Related commands

Before you use this command, you must have a currently selected zone stored in memory. The following commands enable you to view and select a UNIX command to work with:

After you have a UNIX command stored in memory, you can use the following commands to work with that command:

  • delete_dz_command deletes the selected command from Active Directory and from memory.
  • get_dzc_field reads a field value from the currently selected command.
  • save_dz_command saves the selected command with its current settings to Active Directory.
  • set_dzc_field sets a field value in the currently selected command.