get-adforest


Getting all domain controllers in a forest 2

Using something like Get-ADDomainController -Forest would be something too easy for module designers at Microsoft. Or does Microsoft no longer have multi-domain forests in its internal IT? Never mind, here is a nice snippet to retrieve that you may want to adapt to the fields you need to retrieve

[…]