I've been able to get the following:
Get-SPSite -Limit All |
Get-SPWeb -Limit All |
where { $_.HasUniquePerm -and $_.AssociatedOwnerGroup -ne $null } |
foreach {
$url = $_.Url; $_ } |
Select -ExpandProperty AssociatedOwnerGroup |
Select -ExpandProperty Users |
Select {$url}, UserLogin, DisplayName | Export-csv c:\test.csv -notypeinformation
This gives me the site url, site owner's logins and display names. However, I can't figure out how to also get the site title. I seem restricted to either getting the title or the url of a site. How can I pull back both through this method?
0 commentaires:
Enregistrer un commentaire