Using PowerShell - Get list of Domain Controllers

Published: 17 September 2019
on channel: microsoft lab
2,550
20

Using PowerShell - Get list of Domain Controllers

1. Prepare

- DC1 : Domain Controller(Yi.vn) | DC2,DC9 : Domain Controller(Child domain - HQ.Yi.vn) | DC254 : Routing server

- DC3 : Domain Controller(Child domain - Site01.Yi.vn) | DC4 : Domain Controller(Child domain - Site02.Yi.vn)

2. Step by step : Get list of Domain Controllers via Windows Powershell

- DC2 : Get list of Domain Controllers via Windows Powershell

+ Server Manager - Tools - Active Directory Module for Windows PowerShell, type :

+ Get-ADDomainController -Filter * # Get Domain Controllers of HQ.Yi.vn

+ Get-ADDomainController -Filter * | Select Name,Domain,Forest,OperatingSystem,OperationMasterRoles | ft –AutoSize

Get Domain Controllers of HQ.Yi.vn with fields

+ (Get-ADForest).Domains # Get all Domains in forest

+ (Get-ADForest).Domains | %{Get-ADDomainController -Filter * -Server $_} | Select Name,Domain,Forest,OperatingSystem,OperationMasterRoles | ft –AutoSize

Get all Domain Controllers of forest with fields














---------------------------------------------********************    / microsoftlab   ********************---------------------------------------


Watch video Using PowerShell - Get list of Domain Controllers online without registration, duration hours minute second in high quality. This video was added by user microsoft lab 17 September 2019, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,550 once and liked it 20 people.