To get a quick list of all of your domain controllers, run this one-liner:
Get-AdDomainController -Filter * | Select-Object -Property Name, Domain, Forest, IPv4Address, Site | Export-Csv -Path $env:temp\report.csv -UseCulture -NoTypeInformation -Encoding Default
Of course, you need to be logged on to a domain, and you need to have access to the “ActiveDirectory” PowerShell module.
The line creates a CSV file in your temporary folder that is ready to be opened with Excel. Simply double-click the created CSV file. “-UseCulture” makes sure the CSV uses the correct delimiter for Excel to open it.