Reputation: 789
I have (what I think is) an odd problem.
I have two domain admin accounts and one domain controller (for the purpose of this question). Here is the scenario:
In both cases, we are entering the credentials of admin1 when prompted by Get-Credential
Command: Get-ADGroupMember administrators -Credential (Get-Credential) -Server dc01 -Recursive
Error: Get-ADGroupMember : There is no such object on the server
If I remove the -Recursive parameter, then the command works for both admins (again, using the credentials of admin1). If I open ADUC as admin1, then look at the members of Administrators, I can see all members, opening sub-groups without issue.
What in the world is going on? Thanks.
Upvotes: 0
Views: 317
Reputation: 789
Well, looks like it was a permissions issue. I added the service account to Enterprise Admins and the failure stopped. I have no idea which object is causing the failure.
Upvotes: 0