explain_userAccountControl

Use the explain_userAccountControl command to convert a userAccountControl value from an Active Directory object field into a human-readable form.

Syntax

explain_userAccountControl uac

Options

This command takes no options.

Arguments

This command takes the following argument:

Argument Type Description

uac

string

Required. A userAccountControl value for conversion.

Return value

This command returns a hexadecimal version of the supplied value followed by the names of any flags that are set in the value.

Examples

explain_userAccountControl [get_object_field userAccountControl]

returns:

10200 ADS_UF_NORMAL_ACCOUNT ADS_UF_DONT_EXPIRE_PASSWD

The unseen value returned by get_object_field userAccountControl in this example was 66048, which was converted to the hexadecimal value 10200 and the name of the set flags ADS_UF_NORMAL_ACCOUNT and ADS_UF_DONT_EXPIRE_PASSWD.

Related Tcl library commands

The following commands perform actions related to this command:

  • explain_groupType converts a groupType value from an Active Directory object into human-readable form.
  • explain_trustAttributes converts a trustAttributes value from an Active Directory object into human-readable form.
  • explain_trustDirection converts a trustDirection value from an Active Directory object into human-readable form.