Question export info from Active Directory windows server 2003. (1 Viewer)

xaysana

Registered User.
Local time
Today, 23:04
Joined
Aug 31, 2006
Messages
94
Hi there,
Thank you for saying Happy Birth Day to me.

By the way, my FO line manager wants an IT report, i am wandering if there is any posibility to search and export users. The report should show in the status column who are disabled, who are enabled, date created and date expired in date column in active directory windows server 2003 evironment please?

Thank you in advance for your advice.

Best regards,
 

Galaxiom

Super Moderator
Staff member
Local time
Tomorrow, 02:04
Joined
Jan 20, 2009
Messages
12,854
It is pretty heady stuff to get into your own database. LDAP uses a two level structure where some field values are arrays. This will get you started.

Here is an explanation of LDAP attributes of computers and users in Active Directory.
http://www.computerperformance.co.uk/Logon/LDAP_attributes_active_directory.htm#LDAP_Attribute_

Connect to the LDAP server using an ADO connection.

Code:
Set ADConn = CreateObject("ADODB.Connection")
ADConn.Provider = "ADsDSOObject"
ADConn.Open "Active Directory Provider"

The general syntax for a query against this connection:

Code:
SELECT somefield FROM 'LDAP://ServerName' WHERE objectCategory= 'someCategory' AND someattribute='somevalue'
 

Users who are viewing this thread

Top Bottom