filmov
tv
Using PowerShell - Get list of Domain Controllers
Показать описание
Using PowerShell - Get list of Domain Controllers
1. Prepare
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 * | Select Name,Domain,Forest,OperatingSystem,OperationMasterRoles | ft –AutoSize
+ (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
1. Prepare
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 * | Select Name,Domain,Forest,OperatingSystem,OperationMasterRoles | ft –AutoSize
+ (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