Viewing Sharepoint Groups and Group Membership
i created following view\export groups\group members sharepoint site.
function get-spgroups {
param(
[microsoft.sharepoint.powershell.spwebpipebind]$web
)
$spweb = $web.read()
$spweb.sitegroups | select name,users | out-file c:\file.txt
}
get-spgroups -web "http://siteurl"
the output looks this:
name users
---- -----
approvers {contoso\andyj, contoso\annal, contoso\annew, contoso\domai...
i'd see users limited first 4. i've tried setting $formatenumerationlimit 10 same results. i've tried using export-csv but it only displays "microsoft.sharepoint.spusercollection" users object. ideas on how expand users? i'd use export-csv need find way expand spusercollection object well.
thanks,
joe
Comments
Post a Comment