How to redefine a button
Top  Previous  Next


·Press Ctrl and Shift on the keyboard and click button "1", "2" or "3" to open the options dialog.  
·In the options dialog, select one of the button lists, type a valid property name (see below) in the text input field and click the "+" button. It is possible to enter multiple properties at once by separating them with the "§" character.  
·Drag and drop to rearrange properties or to move properties between buttons. Press Ctrl on the keyboard while dragging to copy.  

Notice that the enumeration speed is directly proportional to number of properties.

Example - extract first name, initials and last name for Windows domain accounts

givenName§Initials§sn§

How to find out property names

The easiest way to find available properties for an object is to display all existing properties for one account. Not all objects contain all properties so it is a good idea to examine a few different accounts to see what's available.

Another way to find out property names is to use the SetupBatcher command reference.
·For common Linux properties, see tables for Lin.DS.Op.SetProperty  
·For common Novell properties, see tables for Nov.DS.Object.SetProperty  
·Windows has different property names for some properties when reading and writing, so the table for AD.Account.SetProperty is not completely relevant, but see the below table for some interesting properties.  

Some interesting Windows/Exchange properties:  
Property
Comment
samaccountname
x
UserPrincipalName
x
givenName

Initials

sn
Surname
description

logonCount

lastLogon

badPwdCount

badPasswordTime

pwdLastSet

WWWHomePage

mail

textEncodedORAddress
Exchange 2000: X400 address
mDBOverHardQuotaLimit
Exchange 2000: Prohibit send and receive level
msExchIMAddress
Exchange 2000: Instant Messaging address
extensionAttribute1
Exchange 2000: Custom attribute 1
primaryGroup
Name of primary group, requires ADsSecurity.dll (primaryGroupID = group RID, does not require extra dll)
AccountDisabled etc.
The buttons can also display all Account flags listed for Data.Get.AD.