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

Breake/enable inheritance using powershell

$
0
0

Hello,

I try to modify inheritance from powershell.

This is what i try to use:

$listname = "elso"
$list = $spweb.lists[$listname]
$list.Breakroleinheritance($true)

So i have a list (elso) created but when i run this code the inheritance is not broken. I can still see the stop parent inheritance button.

What is missing?

Will the .breakeroleinheritance($false) enable it again?


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>