![](/img/trans.png)
[英]Get count of all the subsites (all levels) in all site collections in SharePoint Online using PowerShell
[英]How get users permissions report to all site collections on SharePoint Online using PowerShell
我正在尋找一種解決方案,說明如何使用 PowerShell 在線 SharePoint 上的所有站點 collections 生成具有用戶權限的報告的解決方案。
使用下面的腳本,我獲得了有關站點的所有數據。 是否可以僅檢索每個站點的 url 值作為此腳本的響應?
Connect-SPOService -url "https://...-admin.sharepoint.com" -Credential (Get-credential)
Get-SPOSite -Limit ALL | Export-CSV -LiteralPath C:\Temp\SitesInventory.csv -NoTypeInformation
下面是生成具有指定網站集的用戶權限的報告的第二個腳本的片段
...
$SiteURL = "..."
$ReportFile = "C:\Temp\UsersPermissionsReport.csv"
GeneratePnPSitePermissionsReport -SiteURL $SiteURL -ReportFile $ReportFile -Recursive
使用第二個腳本生成一個具有指定網站集的用戶權限的報告,但我需要迭代從第一個腳本返回的所有網站,並為每個腳本生成一個具有用戶權限的報告
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.