Showing posts with label BreakRoleInheritance. Show all posts
Showing posts with label BreakRoleInheritance. Show all posts

Thursday, April 30, 2015

Removing the BreakRoleInheritance permission list or library using Powershell


Add-PSSnapin "Microsoft.SharePoint.PowerShell"
#testname
$list = (Get-SPWeb "http://spserver/2015/").Lists["testname"]
$list.BreakRoleInheritance($true,$true)
$list.Update()