viernes, 13 de abril de 2018

WINDOWS. PS. AD Roles

This is one way to know the Windows AD Roles.

Option 1:

Write-Host 'SchemaMaster' -ForegroundColor:Green
(Get-ADForest).SchemaMaster

Write-Host 'DomainNamingMaster' -ForegroundColor:Green
(Get-ADForest).DomainNamingMaster

Write-Host 'InfrastructureMaster' -ForegroundColor:Green
(Get-ADDomain).InfrastructureMaster

Write-Host 'PDCEmulator' -ForegroundColor:Green
(Get-ADDomain).PDCEmulator

Write-Host 'RIDMaster' -ForegroundColor:Green
(Get-ADDomain).RIDMaster




Option 2:

   $dc=Get-ADDomainController -Filter * 
    $dcs=$dc | Measure-Object | Select-Object -ExpandProperty count
    $dc | Format-Table Name,Ipv4Address,OperatingSystem,Site,IsGlobalCatalog,OperationMasterRoles -autosize -wrap
    Write-Host 'Total Number:    '$dcs""


Check at Windows 2012R2 & W10
by GoN | Published: April 13, 2018 | Last Updated:

No hay comentarios: