Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

How do I query a groups members, including subgroups, to output givename, surname, and title?

$
0
0

Hi Scripting Guy members,

I am new to powershell and I haven't been scripting verylong. I've been learning how to pipe commands so here is where I am so far:

get-adgroupmember "spec - new product announcements" |  get-aduser -Properties GivenName, Surname, Title | select GivenName, Surname, Title

This script isn't complete but I was looking for some pointers on how to get some subgroups that are in the "spec - new product announcements" group to be outputed with their GivenName, Surname, and Title. I got to a point where I succeeded in this but I forgot to copy the command. Any help would be appreciated.

Thanks,


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>