The standard Active Directory object picker dialog for .NET
Switch branches/tags
Nothing to show
Clone or download
Latest commit a943295 Aug 25, 2017

Active Directory Object Picker Build status

The standard Active Directory object picker dialog for .NET


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)

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