Get-IADCurrentDomain

Retrieve current domain information like Domain Controllers, DomainMode, Domain Masters, and Forest Root.

Anonymous