Quickly get Domain Controllers informations in the current domain with PowerShell

Hello,

Thanks to .Net you can have some useful informations about domain controllers pretty fast :

[System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain().FindAllDomainControllers()

This class is pretty nice, you have a lot of useful methods and properties :

DomainControllers

Leave a Reply