PowerShell创建SharePoint 权限等级

Posted JPinsz

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了PowerShell创建SharePoint 权限等级相关的知识,希望对你有一定的参考价值。

参考:https://social.technet.microsoft.com/wiki/contents/articles/18661.sharepoint-2010-update-a-permission-level-using-powershell.aspx

$sites = get-spsite -Limit ALL –webapplication http://mywebapplication.com            
ForEach ($site in $Sites)            
{             
    # The URL to the Site Collection            
    $spWeb = $site.RootWeb            
             
    # Enter the Name of the Permission Level to Change            
    $PermissionLevel=$spWeb.RoleDefinitions["CustomOwner"]            
             
    # Enter all the permissions that Permission Level should have enabled            
    $PermissionLevel.BasePermissions="ViewListItems, AddListItems, EditListItems, DeleteListItems, ApproveItems, OpenItems, ViewVersions, DeleteVersions, CancelCheckout, ManagePersonalViews, ManageLists, ViewFormPages, Open, ViewPages, AddAndCustomizePages, ViewUsageData, CreateSSCSite, ManagePermissions, BrowseDirectories, BrowseUserInfo, AddDelPrivateWebParts, UpdatePersonalWebParts, UseClientIntegration, UseRemoteAPIs, ManageAlerts, CreateAlerts, EditMyUserInfo, CreateGroups, EnumeratePermissions"            
             
    $PermissionLevel.Update()            
    $spweb.Dispose()            
    $spsite.Dispose()            
}

 

以上是关于PowerShell创建SharePoint 权限等级的主要内容,如果未能解决你的问题,请参考以下文章

SharePoint PowerShell 启动工作流

powershell 这将通过活动目录和SharePoint直接权限提供用户列表。这是未完成的,需要一堆改进

使用PowerShell为库中的SharePoint文件夹授予Active-Directory-Synced组权限

powershell 为SharePoint 2013创建SharePoint服务帐户(最低)

powershell 此PowerShell脚本创建三个SharePoint列表并添加字段

powershell 这将获取SharePoint网站中用于创建网站的模板