none
Check ping test from all domain controllers in forest RRS feed

  • Question

  • Below script is working to ping test into the domain for all DC's but i am looking for ping test from all domain controllers in forest

    $DomainName = (Get-ADDomain).DNSRoot  
    $AllDCs = Get-ADDomainController -Filter * -Server $DomainName
    (Get-ADDomainController -Filter * -Server $((Get-ADDomain).DNSRoot)).Hostname | 
    %{Test-NetConnection -ComputerName $_  -InformationLevel Detailed}

    I tried with below script but no luck.

    $DomainName = (Get-ADForest).Domains 
    $AllDCs = Get-ADDomainController -Filter * -Server $DomainName
    (Get-ADDomainController -Filter * -Server $((Get-ADForest).Domains)).Hostname |
    %{Test-NetConnection -ComputerName $_ -InformationLevel Detailed}


    Monday, June 22, 2020 10:57 AM

All replies