Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

(Get-ADGroupMember).name not working

$
0
0

I have an AD Group called SSOPilot.  I want to find out all the users in this group.  If I run this command it works.  Get-ADGroupMember SSOPilot -Recursive but it returns far too much information.

distinguishedname, name, objectclass, objectguid, SamAccountName, SID.  I only want Name so I then ran this command.   (Get-ADGroupMember).name SSOPilot -Recursive it gives me an error saying:   

At line:1 char:36

+ (Get-ADGroupMember).SamAccountName SSOPilot

Unexpected token 'SSOPilot' in expression or statement.

 

Why?   

 


Viewing all articles
Browse latest Browse all 6937

Latest Images

Trending Articles



Latest Images