Powershell GUIs - is there an Active Directory dialog box for selecting OU? How is FileOpenDialog?

Is there a class (possibly open via .NET) that allows you to run a list of directories from a list of active directories? I have an application in which I repeat the top-level structure of the top-level domain and present the distinguished name in the drop-down list in my PowerShell gui, but a more elegant solution (IMO) would be to click a button and allow the user to select the OU level to run the program. Does anyone know what a library / class / etc is? Can I use this task in PowerShell? thanks in advance!

+4
source share
3 answers

So this is not ideal, but I modified treeview to dynamically enumerate the local domain structure displaying distinguished names. Now this is not perfect, but it works for what I need:

http://thepip3r.blogspot.com/2011/06/powershell-guis-active-directory.html

+1
source

It exists as a COM object that can be used in C ++, as described in the Microsoft Documentation .

Several developers port it to .NET. I use one that is associated with the French code code named Codes-Sources and adapts it to my needs.


Edited

You can get there to use the Microsoft Directory Object Picker in PowerShell.

0
source

Kudos to Micah for this wonderful solution from https://itmicah.wordpress.com/2016/03/29/active-directory-ou-picker-revisited/

(Previously, I was criticized in stackoverflow for publishing the link, but there is no alternative for this, since this code exceeds the valid 30,000 characters)

https://raw.githubusercontent.com/ITMicaH/Powershell-functions/master/Active-Directory/OUs/ChooseADOrganizationalUnit.ps1

0
source

All Articles