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, duration hours minute second in high quality that is uploaded to the channel microsoft lab 17 September 2019. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 2,550 times and liked it 20 visitors.