Click here to Skip to main content
15,905,229 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to get windows server Active Directory users data into windows phone 7 (windows mobile 7).
I got the solution using web service/WCF. but I don't want to maintain any server for running web service.

Is there any alternate solution for this?
please help me.

1 solution

Can you use a DirectorySearcher to make an LDAP query via WMI to query users in an Active Directory directly.

E.g. something like:

new System.DirectoryServices.DirectorySearcher(
new DirectoryEntry(
){ Filter = "objectClass=user" }.FindAll();
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