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?