I have this request to list all the groups a specific set of users
belong to. Since we use groups to control ACLs, this can (effectively)
be a listing of all the shared folders the user has access to (we list
the location of the shared folder in the notes of the group).  I'm
still new to PS, and could use a bit of a pointer as to how to get to
the description. To get the list of groups, I am planning on:

import-module ActiveDirectory
cd AD:

and then loop through a text file of SAMAccountNames:

Get-ADUser -Identity LeoneM -Properties memberof | select
-ExpandProperty memberof | get-adgroup | select name

This would give me the names of the groups (thank you, Google ...),
but how do I get to the descriptions of the groups that are returned?
I don't seem to see the notes property in the adgroup. How can I list
that attribute of the returned group?

If someone has a better idea, I'm all ears. :-)

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin

Reply via email to