get_zone_computer_field
Use the get_zone_computer_field
command to return the value of a specified field from the currently selected zone computer stored in memory. The get_zone_computer_field
command does not query Active Directory for the zone computer. If you change field values using ADEdit without saving the zone computer to Active Directory, the field value you retrieve using get_zone_computer_field
won’t match the same field value for the zone computer stored in Active Directory.
Zone type
Classic and hierarchical
Syntax
get_zone_computer_field field
Abbreviation
gzcf
Options
This command takes no options.
Arguments
This command takes the following argument:
Argument | Type | Description |
field |
string |
Required. Specifies the case-sensitive name of the field whose value to retrieve. The possible values are:
|
Return value
This command returns a field value. The data type depends on the field specified.
Examples
get_zone_computer_field dnsname
This example returns the name of the zone computer as listed in DNS:
printserver.acme.com
Related commands
Before you use this command, you must have a currently selected zone computer stored in memory. The following commands enable you to view and manage the zone computers:
- get_zone_computers returns a Tcl list of the Active Directory names of all zone computers in the current zone.
- list_zone_computers lists to
stdout
the zone computers in the current zone. - new_zone_computer creates a new zone computer and stores it in memory.
- select_zone_computer retrieves a zone computer from Active Directory 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_computer deletes the zone computer from Active Directory and from memory.
- save_zone_computer saves the zone computer with its current settings to Active Directory.
- set_zone_computer_field sets a field value in the currently selected zone computer.