我遇到这个命令有问题:
gc .\domains.txt | Get-ADDomain
Run Code Online (Sandbox Code Playgroud)
顾名思义,domains.txt包含要查询的Active Directory列表(所有域都在同一个林中).
If I run it on my Windows 8 machine everything works fine and I get the expected results, instead on a Windows 2008 R2 SP1 member server (not a DC) with WMF 3.0 I get result only from the first domain in the list and for the others:
Get-ADDomain : A referral was returned from the server
Run Code Online (Sandbox Code Playgroud)
If I query a domain in the list with:
Get-ADDomain <Domain name here>
Run Code Online (Sandbox Code Playgroud)
it works fine. …