Active Directory Programming with .NET (demo code)

Last year I did 3 screencasts on building .NET solutions agains the Active Directory data store, and recently there was a couple of requests for the code from those webcasts.  Although, I don’t have the code seperated into the 3 segments to follow the screencast, I’ve posted the full demonstration appliation, which can be found on our Federal Developer web site (  This demonstration has all 3 parts in a full end-to-end demonstration.

The original blog postings (and links to the screencast) were:

Adding a user to Active Directory using .NET
Adding users and groups (and users to groups) to Active Directory using .NET
Searching Active Directory using .NET
The demonstration code shows all 3 of the projects above plus additional tips/tricks and the a PowerPoint presentation on the subject.

You can get to the exact download location by clicking here (the URL is to long to paste).

~ Robert Shelton

Comments (3)

  1. yashmitl says:

    I am looking to authenticate user for the accessing the share across domain/forest. Accesscheck function fails crossing the forest/Domain. Does anybody has any tips to do this.


  2. Babi says:

    I could not open any of the above link…/488613.aspx

  3. Prethesh Kumar Bhalotia says:


    I am very new to the Active Directory Concept.

    I am trying to write a simple program to retrieve the attribute value from Account Tab of an User Object in the Active Directory in Visual C++ .net. Can any one please send me the full coding.

    It will be a great help for us.

    my mail id

    thanks in advance…