VBScript program to retrieve a multi-valued property from Active Directory. Such properties are collections. They contain zero, one, or more than one string items in the collection. The otherTelephone property is used in the program as an example.

The values in the collection are placed in a string variable, separated by carriage returns. This string can be displayed with one value in the collection per line.

The Distinguished Name of a user is passed to the program as a parameter. If the Distinguished Name has a character that must be escaped, such as a comma, be sure to escape the character with the backslash escape character, "\". The characters that must be escaped are:

, \ / # + < > ; " =

This program should work on any 32-bit Windows client that can log onto the domain. Windows NT and Windows 98/95 clients should have DSClient installed. If DSClient is not installed, they need WSH and ADSI installed.

GetFromADCollection.txt <<-- Click here to view or download the program