7

I would like a SP 2010 Powershell script which searches all folders in a library and finds the ones that do not inherit permissions from their parent.

Does anyone have one handy? I'm new to the whole powershell/sharepoint idea, so not sure how to go about this yet.

Cheers, Daniel

7

Try this:

asnp microsoft.sharepoint.powershell
$web = Get-SPWeb "http://yoururl"
$list = $web.Lists["YourLibrary"]
$list.Folders | ft Name, HasUniqueRoleAssignments
1
  • We used your script successfully, but instead of "Folders" used "items" -> $list.Items | ft Name, HasUniqueRoleAssignments – user15432 Apr 15 '13 at 10:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.