Monday
Apr282008
Enumerate all DCs in the local domain - Powershell
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. :-))
in
rants
rants
Reader Comments (4)
$dcs = ([System.DirectoryServices.ActiveDirectory.Domain]::getCurrentDomain()).FindAllDomainControllers()
netdom query dc