Condividi tramite


checkBox Element

Applies To: Windows Server 2008

The checkBox element represents a check box parameter. The checkBox element must be associated with a boolean element defined in the elements element.

Syntax

<checkBox refId="<placeholderID>"
         defaultChecked="true|false"
     Placeholder label:</ checkBox >

where Placeholder label is label text for the parameter.

Attributes

Attributes Required Description

refId Attribute

Yes

A mapping to the element.

defaultChecked Attribute

No

A default value. If not specified, the defaultChecked attribute will be set to false.

Child elements

There are no child elements associated with this element.

Remarks

The checkBox element is associated with a check box parameter in the Group Policy Management Console or the Local Group Policy Editor. The checkBox element will require a matching boolean element in the corresponding .admx file with matching id attribute as declared in the presentation element containing the checkBox element.

Examples

This XML fragment is an example of two checkBox elements that are associated with two check box parameters, the second checked by default.

        <checkBox refId="Checkbox_1">First check box parameter</checkBox>
        <checkBox refId="Checkbox_2" defaultChecked="true">Second check box parameter - checked by default</checkBox>

Additional references

boolean Element

presentation Element