Skip to content

jomonson/Active-Directory-Object-Picker

 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 99.0%
  • PowerShell 1.0%