You could always grab it through powershell to avoid all those COMplex operations ;)
Try this at the powershell command line $info = ([adsisearcher]"objectclass=organizationalunit") $info.PropertiesToLoad.AddRange("CanonicalName") $info.findall().properties.canonicalname
Lars Fosdal Yes, unfortunally it's a bit more then just a few routines to query the information. Just have/had the hope there is a all-round carefree package for doing that :D Else i'll have to write a minimalistic AD Browser on my own ^__^
Ah, that is a different exercise. I don't even want to go there ;)
ReplyDeleteYou could always grab it through powershell to avoid all those COMplex operations ;)
ReplyDeleteTry this at the powershell command line
$info = ([adsisearcher]"objectclass=organizationalunit")
$info.PropertiesToLoad.AddRange("CanonicalName")
$info.findall().properties.canonicalname
Stefan Glienke Martin Wienold no never... :D
ReplyDeleteLars Fosdal Yes, unfortunally it's a bit more then just a few routines to query the information. Just have/had the hope there is a all-round carefree package for doing that :D Else i'll have to write a minimalistic AD Browser on my own ^__^