Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to export users from excel to active directory
means i want to write user name and other profile behaviuor and want to export in active directory through vb script
Posted

1 solution

The easiest will be to connect via the oledb provider and ADO, then run the following command

SQL
SELECT cn, mail
FROM 'LDAP://Dc=mydomainname, DC=COM' --replace this with your domain info
WHERE objectClass = 'user'
AND objectCategory = 'person'



This should return you your list of users.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900