List All Computer Accounts in Active Directory. LDAP Attributes. Properties Active Directory Users Computers Distinguished name. This page explains the common LDAP attributes which are used in VBS scripts and PowerShell.
Programs like VBScript (WSH), CSVDE and LDIFDE rely on these LDAP attributes to create or modify objects in Active Directory. For example, when you bulk import users you will include the LDAP attributes: dn and sAMAccountName. How to change the display names of Active Directory users with Active Directory Services Interface script. This article describes how to change the display names of Active Directory users with Active Directory Services Interface (ADSI) script.
By default, when a new user is created, the Display Name box is generated in "FirstName LastName" format. You can change existing users to a "LastName, FirstName" format if you use ADSI Visual Basic (VB) scripting. The default format of newly created users can be changed to reflect the LastName, FirstName format if you use the ADSI Edit utility, and then you alter the createDialog property in the DisplaySpecifiers node. For more information about how to change the default format, click the following article number to view the article in the Microsoft Knowledge Base: ( )