Horb / Active-Directory-Object-Picker

Active Directory Object Picker for .NET

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Active Directory Object Picker Build status

###The standard Active Directory object picker dialog for .NET

Screenshot

This project is based on a Active Directory Common Dialogs .NET (ADUI) created in 2004 by Armand du Plessis. It has been updated and make it working with 64 bit Windows Editions.

###How to use it You can install the lastest version using NuGet

Install-Package Tulpep.ActiveDirectoryObjectPicker

And use it this way:

DirectoryObjectPickerDialog picker = new DirectoryObjectPickerDialog()
{
    AllowedObjectTypes = ObjectTypes.Computers,
    DefaultObjectTypes = ObjectTypes.Computers,
    AllowedLocations = Locations.All,
    DefaultLocations = Locations.JoinedDomain,
    MultiSelect = true,
    ShowAdvancedView = true
};


if (picker.ShowDialog() == DialogResult.OK)
{
    foreach (var sel in picker.SelectedObjects)
    {
        Console.WriteLine(sel.Name);
    }
}

This repository contains a Visual Studio Test Project if you want a working example.

About

Active Directory Object Picker for .NET

License:Other


Languages

Language:C# 99.0%Language:PowerShell 1.0%