select_zone_computer
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
Syntax
select_zone_computer sAMAccountName$@domain
Abbreviation
slzc
Options
This command takes no options.
Arguments
This command takes the following argument:
| Argument | Type | Description |
|---|---|---|
| sAMAccountName | string | 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.
Examples
select_zone_computer sales2$@acme.com
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:
get_zone_computersreturns a Tcl list of the Active Directory names of all zone computers in the current zone.list_zone_computerslists tostdoutthe zone computers in the current zone.new_zone_computercreates a new zone computer and stores it in memory.
After you have a zone computer stored in memory, you can use the following commands to work with that zone computer:
delete_zone_computerdeletes the zone computer from Active Directory and from memory.get_zone_computer_fieldreads a field value from the currently selected zone computer.save_zone_computersaves the zone computer with its current settings to Active Directory.set_zone_computer_fieldsets a field value in the currently selected zone computer.