Computer Performance, Windows 2003, Exchange 2003, Logon Scripts

 

VBScript -  Use ADSI to Discover LDAP Properties

ADSI (Active Directory Service Interfaces)

LDAP is a language that enables Active Directory to find, create and manipulate objects.  ADSI Edit will let you examine a user's properties and display all the LDAP properties.  Through knowing the property names, you can bulk import users from a spreadsheet using a rich selection of LDAP attributes.  The trick is getting the correct fields in the first row or header of your import file.

I have added a whole detailed section on ADSI Edit hereADSI Edit LDAP properties

Example of ADSI

My tactic is to find a user in ADSI edit, for example Guy Thomas. Then I was able to match the user's properties in Active Directory Users and Computers (See here) with the LDAP attributes [Right Diagram]

LDAP Properties

For more detail, right click a user and select properties, here [below] are two examples:

The mandatory objects are worth noting

 

You may wish to drill down one more layer.  Here is a view of the LDAP attributes for the important DN = distinguishedName.  If it were necessary you could use ADSI Edit to actually make changes to the LDAP names.

 

To get a copy of ADSI Edit, either extract it from Windows Server 2003  \support folder.  Or here is a zipped copy of ADSI edit


Download your eBook:  How to create users with a VBScript- only $6.25

How to create users with a VBScriptSave hours of frustration and buy Guy's eBook.  The features include: detailed examples on how to import LDAP properties from a spreadsheet, Do...Loop Until  explained, connect to your domain with RootDSE.

You get a printer friendly version with copy enabled, and no expiry date.

 


See Also

 .


Google

Webcomputerperformance.co.uk

GFi Events Manager

Guy Recommends: GFi EventsManager

Let GFI EventsManager do the dirty work! Have event logs monitored automatically and get warned about critical events! Download a copy here

 

Home Copyright © 1999-2009 Computer Performance LTD All rights reserved

Please report a broken link, or an error.