Active Directory
Welcome to Active Directory section of C# Corner. In this section, you will find various Active Directory related source code samples, articles, tutorials, and tips using C# language.


  • Shelly Bhardwaj

    How To Export Exchange Mailboxes To PST File Using PowerShell Cmdlet

    In this article, you will learn how to export Exchange Mailboxes to PST File using PowerShell Cmdlet.
    Shelly Bhardwaj Jan 13, 2021
  • Shelly Bhardwaj

    Free Methods To Export Exchange Mailbox To Office 365

    In this article, you will learn about Free Methods to Export Exchange Mailbox to Office 365.
    Shelly Bhardwaj Jul 23, 2020
  • Arun Menon

    Advanced Customization of AD FS Sign-in and Update Password Pages

    The article is a detailed walkthrough for customizing the ADFS login and update password page with custom company branding and custom functionalities. There is a sample code attached within which ...
    Arun Menon Apr 22, 2020
  • Raj Kumar

    How To Validate Username And Password Using Active Directory

    In this blog, you will learn how to validate username and password using active directory credentials.
    Raj Kumar Apr 15, 2020
  • Shweta Lodha

    The Difference Between Azure Active Directory And Windows Active Directory

    This blog briefly explains the differences between the Windows Active Directory and Azure Active Directory.
    Shweta Lodha Mar 10, 2019
  • John O Donnell

    Changing User Information using Active Directory

    If your company is one of the lucky? Ones to implement Windows 2000 Active Directory you may have been looking for a way to populate it with data. Perhaps adding people’s details from a file direct...
    John O Donnell Mar 06, 2019
  • Chirag Khabaria

    Fixing Active Directory Error Logon Failure - Unknown User Name Or Bad Password

    Fixing System.DirectoryServices.DirectoryServicesCOMException (0x8007052E): Logon failure: unknown user name or bad password.
    Chirag Khabaria Mar 17, 2018
  • Chirag Khabaria

    Active Directory Filter Builder

    AD Filter Builder is the tool for building up the LDAP query for easy searching.
    Chirag Khabaria Mar 15, 2018
  • Sandeep Gupta

    Active Directory Authentication

    By using this, we can implement the LDAP\domain authentication. For that need to change the Server Address and port name in Web.config/app.config file.
    Sandeep Gupta Jul 12, 2017
  • Pranav Mittal

    Azure AD Admin Console Now Generally Available

    The new Admin Console of Microsoft Azure Active Directory is now generally available.
    Pranav Mittal May 16, 2017
  • Shridhar Sharma

    Getting Users From Active Directory

    In this post, we will fetch Active Directory users using C# code. For this, all we need are Active Directory assemblies.
    Shridhar Sharma Jan 02, 2016
  • Satyendra Tiwari

    Configuring Active Directory to Meet Compliance Requirements

    In this blog we will learn how to configure Active Directory to meet regulatory compliance requirements.
    Satyendra Tiwari Jan 02, 2015
  • John Charles Olamendy

    Accessing the Active Directory From Microsoft .NET

    This article is intended to explain the architectural design of an application querying the Microsoft Active Directory. Microsoft Active Directory is a directory service that provides the foundatio...
  • Amir Ali

    Learn About Date Picker in Android

    This article explains the Date Picker in Android. Android Studio is used to create the sample.
    Amir Ali Sep 12, 2013
  • Rohit Kshirsagar

    Forms Authentication with Active Directory

    This article and sample code explains how you can take advantage of Active Directory in Web applications for authenticate and authorize the Web site users.
    Rohit Kshirsagar Sep 23, 2012
  • Erika Ehrli

    Active Directory and .NET

    Microsoft Technet offers a script repository to work with AD User Accounts; however, I needed to work with .NET and I could not find samples for all the tasks I needed to program. I promised to mys...
    Erika Ehrli Sep 23, 2012
  • Shrikant Utekar

    Integrated Security with Web Application

    This article will give you an idea about how Integrated Security works with Web Application using Active Directories.
    Shrikant Utekar Sep 23, 2012
  • Anand Thakur

    Authenticate a user against the Active Directory

    This article serves as a guide to using System.DirectoryServices (SDS) ADSI to access user and group in the Windows Active Directory. Authenticate a user against the Active Directory using the user...
    Anand Thakur Sep 06, 2011
  • Kevin Rou

    Integrating LDAP Active Directory into your .Net Web Portal (C# or VB.NET)

    This article will guide you through the best practices and method of using LDAP Active Directory as your user store for credentials and account information in your web applications or portal that y...
    Kevin Rou Jul 23, 2011
  • Kannan D

    Create User In Active Directory and Maill Box in Exchange Server

    This explains how to create a Active directory users and how to create the mail box for the Active directory users on Exchange Server 2007. It also explains how to disable the mail box for a user a...
    Kannan D Dec 02, 2010
  • Jaish Mathews

    Using Expression Property to create Columns with Dynamic Values

    This article shows how to create columns with dynamic values using expression property.
    Jaish Mathews May 13, 2009
  • Matthew Cochran

    C# Asynchronous Multi-Threaded Active Directory User/Group Browser

    I was working on a win forms project that queries Active Directory information for user and group information and thought the approach may be of interest to some c-sharpcorner readers as a simple e...
    Matthew Cochran Oct 01, 2007
  • sathya

    .NET and Active Directory

    This article outlines connecting to AD from .Net using ADO and System.DirectoryServices and also forming a unique ID from AD, moving entries from AD to a database and forming AD queries (also date ...
    sathya Apr 29, 2007
  • Wojtek Piaseczny

    LDAP Access Control for ASP.Net

    This is an example of how to build an ASP.NET LDAP authentication application using ADAM. This article describes how to configure ADAM for regular LDAP communication and build a boilerplate ASP.NET...
    Wojtek Piaseczny Feb 01, 2007
  • Sundar
  • View More