This script action allows you to perform the following variable conversions:
1. Performing a logical AND on the input value and a specified argument
2. Convert a large integer to date-time
3. Converting a large integer to specified text if the value is zero.
Deployment
This script action is mainly intended to be used in MASS and Automation.
In Forms & Delegation, large integers (e.g. lastLogon attribute) are
either automatically converted or shown as text (in a form object, these
variables will be displayed as text).
Usage
The name of the input variable should be selected or entered in the
Input variable name list box.
The name of the converted variable should be selected or entered in the
Output variable name list box.
If you click the Conversion button, the following dialog box will appear:
Click the Add button. The Data Comversion
Routine dialog box will appear. Under Conversion
Operation you can select the required conversion type.
Perform logical AND on the input value and specified argument
The routine Perform logical AND on the input value and specified argument
is used to evaluate so called bitmask
attribute values. A bitmask attribute is a single attribute that contains
multiple properties and property values (e.g. the attribute UserAccountControl).
Convert a large integer to date-time
Using this option, you can convert a large integer to date-time (e.g.
lastLogon attribute). The large integer will then be converted to a date-time
variable (e.g. "127718490668401648" will become "07:51
09/22/2005"
Converting a large integer to specified
text if zero
In Active Directory, all attributes containing system times, are stored
in a large integer (e.g. lastLogon). If this value is equal to zero, a
normal conversion to date-time would result in "00:00 01/01/1601".
With the conversion routine "Converting a large integer to specified
text if zero" you can specify a more meaningful text value to pass.