What's the API to get the top domain (root domain) from any domain in the hierarchy like tree or child domain?
The closest I could find were GetForest
or GetCurrentForest
but that's not what I am looking for..
[System.DirectoryServices.ActiveDirectory.Forest]::GetForest(directorycontext)
[System.DirectoryServices.ActiveDirectory.Forest]::GetCurrentForest()
Thanks in advance, -SunMan