Using PowerShell - Get all Users account in forest
Using PowerShell - Get all Users account in forest 1. Prepare - DC1 : Domain Controller(Root - Yi.vn) | DC2 : Domain Controller(Child - HQ.Yi.vn) - DC3 : Domain Controller(Child - Site01.Yi.vn) | DC4 : Domain Controller(Child - Site02.Yi.vn) | DC254 : Routing Server 2. Step by step : Get all Users account in forest - DC2 : Get all Users account in forest + Start - Windows Administrative Tools - Active Directory Module for Windows PowerShell, type : + Get-ADuser -Filter * -properties * -Server DC1.Yi.vn | Select Name,distinguishedName # Show all Users account belong Yi.vn + Get-ADuser -Filter * -properties * -Server DC2.HQ.Yi.vn | Select Name,distinguishedName # Show all Users account belong HQ.Yi.vn + Get-ADuser -Filter * -properties * -Server DC3.Site01.Yi.vn | Select Name,distinguishedName # Show all Users account belong Site01.Yi.vn + Get-ADuser -Filter * -properties * -Server DC4.Site02.Yi.vn | Select Name,distinguishedName # Show all Users account belong Site02.Yi.vn + (Get-ADForest).Domains # Get all Domains in forest + (Get-ADForest).Domains | %{ Get-ADuser -Filter * -properties * -Server $_} | Select Name,distinguishedName # Get all Users account in forest --------------------------------------******************** Youtube.com/c/MicrosoftLab ********************-------------------------------------
Using PowerShell - Get all Users account in forest 1. Prepare - DC1 : Domain Controller(Root - Yi.vn) | DC2 : Domain Controller(Child - HQ.Yi.vn) - DC3 : Domain Controller(Child - Site01.Yi.vn) | DC4 : Domain Controller(Child - Site02.Yi.vn) | DC254 : Routing Server 2. Step by step : Get all Users account in forest - DC2 : Get all Users account in forest + Start - Windows Administrative Tools - Active Directory Module for Windows PowerShell, type : + Get-ADuser -Filter * -properties * -Server DC1.Yi.vn | Select Name,distinguishedName # Show all Users account belong Yi.vn + Get-ADuser -Filter * -properties * -Server DC2.HQ.Yi.vn | Select Name,distinguishedName # Show all Users account belong HQ.Yi.vn + Get-ADuser -Filter * -properties * -Server DC3.Site01.Yi.vn | Select Name,distinguishedName # Show all Users account belong Site01.Yi.vn + Get-ADuser -Filter * -properties * -Server DC4.Site02.Yi.vn | Select Name,distinguishedName # Show all Users account belong Site02.Yi.vn + (Get-ADForest).Domains # Get all Domains in forest + (Get-ADForest).Domains | %{ Get-ADuser -Filter * -properties * -Server $_} | Select Name,distinguishedName # Get all Users account in forest --------------------------------------******************** Youtube.com/c/MicrosoftLab ********************-------------------------------------