VBScript program to document all properties of any Active Directory object. The
ADsPath of the
object is passed to the program as a parameter. The ADsPath is the binding string used to bind
to the object. Either the WinNT or the LDAP provider can be specified. All
attributes exposed by the provider used are documented.
The program is designed to be run at a command prompt using the cscript host. The output can be redirected to a text file. For example:
cscript //nologo DocumentProperties.vbs "WinNT://MyDomain/TestUser" > TestUser.txt
cscript //nologo DocumentProperties.vbs "LDAP://cn=TestUser,ou=Sales,dc=MyDomain,dc=com" > TestUser.txt
All properties in the schema are documented, whether they have a value or not. The Schema property method is used to enumerate the attributes. The program also outputs the values of most properties. Each provider exposes different properties.
When using the LDAP provider, be sure to escape any of the following characters if they appear in the ADsPath:
, \ / # + < > ; " =
For example, if the Common Name is "Wilson, Jane", the comma should be escaped with the backslash escape character, "\". For example, the ADsPath could be similar to:
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.
DocumentProperties.txt <<-- Click here to view or download the program