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

1 Answer 1


Try this:

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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