Avatar of CGNET-TE
CGNET-TE

asked on 

get-adgroupmember for builtin\administrator fail

Hi I was running this task for obtaining the member of Builtin\Administrator group and it was working ok

get-adgroupmember "CN=Administrators,CN=Builtin,DC=CenterXXX,DC=ORG" |ft distinguishedName |out-string -width 200 >C:\cgxxxt1-scripts\Reports\admins.txt

 but I noticed today that it stopped to work and when I run it from the PowerShell the error below is displayed. Any idea about this error? I tried using -identity parameter and it is the same error. Only this is for administrator is failing. I have other task using the same command for Domain Admin and it working ok.  Ideas?

Thanks,
Libe
 

PS C:\Users\admin> get-adgroupmember "CN=Administrators,CN=Builtin,DC=Centerxxx,DC=ORG" |ft distinguishedName |out-str
ing -width 200
Get-ADGroupMember : A referral was returned from the server
At line:1 char:18
+ get-adgroupmember <<<<  "CN=Administrators,CN=Builtin,DC=Centerxxx , DC=ORG" |ft distinguishedName |out-string -width 200

    + CategoryInfo          : NotSpecified: (CN=Administrato...=CEnterxx,DC=ORG:ADGroup) [Get-ADGroupMember], ADExcepti
   on
    + FullyQualifiedErrorId : A referral was returned from the server,Microsoft.ActiveDirectory.Management.Commands.Ge
   tADGroupMember

PS C:\Users\admin
Active DirectoryWindows Server 2003

Avatar of undefined
Last Comment
bvwbzb
Avatar of bvwbzb
bvwbzb

could you not perhaps use the ps command like this:
------------------------------
get-adgroupmember -identity administrators |ft distinguishedName |out-string -width 200
--------------------------------

?
Avatar of CGNET-TE
CGNET-TE

ASKER

Hi
I already tried this bellow too but error is the same.  Any idea?

get-adgroupmember -identity administrators |ft distinguishedName |out-string -width 200

PS C:\Users\rootadmin> get-adgroupmember -identity administrators |ft distinguishedName |out-string -width 200
get-adgroupmember : A referral was returned from the server
At line:1 char:1
+ get-adgroupmember -identity administrators |ft distinguishedName |out-string -wi ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (administrators:ADGroup) [Get-ADGroupMember], ADException
    + FullyQualifiedErrorId : A referral was returned from the server,Microsoft.ActiveDirectory.Management.Commands.Ge
   tADGroupMember

PS C:\Users\rootadmin>
ASKER CERTIFIED SOLUTION
Avatar of bvwbzb
bvwbzb

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Windows Server 2003
Windows Server 2003

Windows Server 2003 was based on Windows XP and was released in four editions: Web, Standard, Enterprise and Datacenter. It also had derivative versions for clusters, storage and Microsoft’s Small Business Server. Important upgrades included integrating Internet Information Services (IIS), improvements to Active Directory (AD) and Group Policy (GP), and the migration to Automated System Recovery (ASR).

129K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo