Powershell script to run dcdiag against all DCs in domain
Posted on 2013-01-30
Hopefully this is a nice quick and easy answer, I am trying to wirte a script that will run a dcdiag against all DCs in my domain.
DCDiag /a only runs the dcdiag against all DCs in my site, but I have multiple sites
DCDiag /e runs dcdiag against all DCs in the Enterprise, the problem is that my domain is a child domain, and this test runs against every DC in the Entire Forest.
If I run a DCDiag /s:servername I can only pipe one server in per command.
Is there a way to run DCDiag against all DCs in my domain?