With the Quest CMDLets this works: get-qaduser jdoe -properties memberof|select -expandProperty memberof|get-qadgroup|select name,notes
Christopher Bodnar Enterprise Architect I, Corporate Office of Technology:Enterprise Architecture and Engineering Services Tel 610-807-6459 3900 Burgess Place, Bethlehem, PA 18017 christopher_bod...@glic.com The Guardian Life Insurance Company of America www.guardianlife.com From: Michael Leone <oozerd...@gmail.com> To: "NT System Admin Issues" <ntsysadmin@lyris.sunbelt-software.com> Date: 09/26/2012 10:46 AM Subject: Powershell question - listing groups a user belongs to, and the notes/description of the group 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 listmana...@lyris.sunbeltsoftware.com with the body: unsubscribe ntsysadmin ----------------------------------------- This message, and any attachments to it, may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are notified that any use, dissemination, distribution, copying, or communication of this message is strictly prohibited. If you have received this message in error, please notify the sender immediately by return e-mail and delete the message and any attachments. Thank you. ~ 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 listmana...@lyris.sunbeltsoftware.com with the body: unsubscribe ntsysadmin
<<image/jpeg>>