Use the select_zone_computer command to retrieve a zone computer in the currently selected zone from Active Directory, store it in memory, and make it the currently selected zone computer for subsequent ADEdit commands. The zone computer remains selected until you select another zone computer, delete the zone computer, or end the ADEdit session.

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

Zone type

Classic and hierarchical


select_zone_computer sAMAccountName$@domain




This command takes no options.


This command takes the following argument:

Argument Type Description



Required. Specifies the Active Directory computer’s sAMAccountName followed by $@ and the computer’s domain.

You can look up the sAMAccountName for a computer in Active Directory Users and Computers or by running the get_zone_computers command.

Return value

This command returns nothing if it runs successfully.


select_zone_computer sales2$

This example looks for the zone computer named sales2 in the current zone and, if found, selects it as the current zone computer.

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 manage the zone computers:

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