当我对另一个域中的另一个对象运行任何命令而不是它所连接的机器时,我收到了从服务器返回的引用。
所以我使用位于域A的ID登录并使用驻留在域B中的管理员帐户启动PowerShell,因此当我尝试运行Get-adgroupmember identity XXX -server domainB
时,即使我使用服务器名称或DC与端口号,我也会收到引用错误。这个问题最近开始发生。
Get-ADGroupMember : A referral was returned from the server
At line:1 char:1
+ Get-ADGroupMember -identity "XXXXX" -server
XX.XX.XX ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
+ CategoryInfo : NotSpecified: (nb it microbank admi:ADGroup) [Ge
t-ADGroupMember], ADException
+ FullyQualifiedErrorId : A referral was returned from the server,Microsof
t.ActiveDirectory.Management.Commands.GetADGroupMember
答案 0 :(得分:1)
立即尝试
Get-ADGroup -Filter { Name -like "XXX" } -Server domainB | Get-ADGroupMember -Server domainB