iT邦幫忙

0

Powershell 操作 Sharepoint 2016 問題

各位大家好,
因為管理需求需透過Powershell 讀取 Sharepoint2016 的資料匣權限, google 到的examples 似乎都讀取不到 Fodler 的 RoleAssignments.

目前是使用 sharepointpnppowershell2016 的 sharepoint-pnp module, 但似乎取不到 RoleAssignments

改用 sharepoint-server(這個目前還不熟) 的 網路上查到的 powersehll 取得也是空值
##---------------Configuration---------------##
$siteUrl = "http://lp-1cc1dea00cd1:500/sites/Publishtopdf"
$FolderPathToCheck = "http://lp-1cc1dea00cd1:500/sites/Publishtopdf/Documents/VIP Space"
$spWeb = Get-SPWeb -identity $siteUrl

#Getting the permission on Folder
$srcFolder= $spWeb.GetFolder($FolderPathToCheck)
$srcFolder.Item.RoleAssignments | Format-Table -Property Member,RoleDefinitionBindings

不知是否有人有相關經驗, 謝謝大德

何必問 iT邦好手 1 級 ‧ 2019-04-04 02:36:21 檢舉
https://sharepoint.stackexchange.com/questions/221118/retrieve-permissions-at-folder-and-file-level-in-powershell

https://gallery.technet.microsoft.com/office/SharePoint-Permissions-f42ea9db
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答