Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Change permission on library subfolder with powershell.

$
0
0

Hello!

How can i break inheritance of subfolders? I can do it with the document library but not with the folders.

I have this script. And its not working.

Add-PSSnapin microsoft.sharepoint.powershell
$spWeb = Get-Spweb http://spteszt
$listname = "Folder1"
$list = $spweb.lists.folders[$listname]
$list.BreakRoleInheritance($true,$true)
$list.update()

How can i reach the folder level?

And the bonus question: How can i change user permission?


I Hate Mondays


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>