Like Select-ADOU.ps1, the Select-ADObject.ps1 PowerShell Script begins by finding the AD Forest, and enumerating all domains. The user’s current domain is set as the default, and the first level of the domain is automatically expanded and put into the TreeView. This expansion of the first level is done with any domain selected. Double click on an node to enumerate and expand the list of OU below the branch. The script uses the [adisi] accelerator and gets all child objects of the OU. When the AD object is selected, the function returns an object which contains the DNS domain name and the object’s distinguishedname attributes. Version 1.1 allows control of form and button text.