set_zone_computer_field

Use the set_zone_computer_field command to set the value for a specified field in the currently selected zone computer stored in memory. The set_zone_computer_field command does not set a field value stored in Active Directory for this zone computer.

If you change any fields, 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

set_zone_computer_field field value

Abbreviation

szcf

Options

This command takes no options.

Arguments

This command takes the following arguments:

Argument Type Description

field

string

Required. Specifies the name of the field whose value want set. The possible values are:

  • cpus: Set to a positive integer for the number of CPUs in the computer.
  • enabled: Set the value to 1, y, yes, or true if the computer is enabled in the zone or to 0, n, no, or false if the computer is not enabled in the zone. All other values throw an exception.
  • licensetype: Specifies the type of license a computer uses. The valid values for this field are server or workstation.

value

 

Required. Specifies the value to assign to the specified field.

In some cases, you can assign a dash (-) to a field to unset the field value. However, this is not supported for all fields or all zone types.

Return value

This command returns nothing if it runs successfully.

Examples

set_zone_computer_field cpus 2

This example sets the current zone computer’s number of CPUs to 2.

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: