PowerShell - Get AD DCs, OS with Site
- Jon Boyette
- Jan 10, 2022
- 1 min read
Nice one liner, super simple, but super useful to get the DC site names in large topology scenarios.
Get-ADDomainController -Filter * | select name, operatingsystem, site | Export-CSV "C:\temp\DCsOSSITE.csv" -NoTypeInformation
Comments