Problem: You have an OU distinguished name and you need to list the parents Solution: function get-parent {
param ( [string] $ou )
$dom = [System.DirectoryServices.ActiveDirectory.Domain] :: GetCurrentDomain ( )
$root = $dom . GetDirectoryEntry… Read the full text.