in
rants
rants
Monday, April 28, 2008 at 08:51AM $dom = [System.DirectoryServices.ActiveDirectory.Domain]::getCurrentDomain()
$dom.FindAllDomainControllers()
Okay, I'll admit it, that's actually kinda not-clunky if you overlook having to address the full S.DS namespace.
(Get that Kool-aid away from me, Brandon. I've already drunk the Federation bug-juice this month, I can't handle any more change right now. :-))
Reader Comments (4)
$dcs = ([System.DirectoryServices.ActiveDirectory.Domain]::getCurrentDomain()).FindAllDomainControllers()
netdom query dc