Modify AD properties unknown by SetupBatcher
Top  Previous  Next


·There are many existing active directory and Exchange properties that are not visible in the standard "Users and computers" MMC console, some examples: "EmployeeID", "Division", "NameSuffix", "OtherName", "NamePrefix".  
·It is also possible to add your own AD properties by extending the schema.  

To modify these properties, put a "$" character in front of the property name. Default value type is text. In order to set other types, value type must be specified in front of the "$" character, see table 1 below.

Table 1 - value type
Prefix
Data type
Value
b$
Boolean
"true" / "false"
i$
Integer
Integer
m$
Multi text
One or many text strings. End each entry with "$". Multi properties are AD array properties.
s$
Text (default)
Text


Examples
1) AD.Account.SetProperty - set Division for account with CommonName "steve" in the users container of domain d09.acme.com

AD.Account.SetProperty dc=com/dc=acme/dc=D09/cn=users/cn=steve, $Division, DIV0001

2) Exchange.55.Mailbox.SetProperty - set Exchange custom attribute 1

Exchange.55.Mailbox.SetProperty %servername2%, %ExchContPath%, %username%, $Extension-Attribute-1, test

3) Exchange.2k.Mailbox.SetProperty - set Exchange custom attribute 1

Exchange.2k.Mailbox.SetProperty dc=com/dc=acme/dc=D09/cn=users/cn=steve, $extensionAttribute1, MyAttribute