Solved

Is there a program I can use to find blocked inheritance?

Posted on 2014-01-08
4
253 Views
Last Modified: 2014-04-14
We have a file server with many folders.
Someone once-upon-a-time put inheritance blocking on many of them.

Is there an easy way to find out which folders have had inheritance blocked?

Thanks
Phil
0
Comment
Question by:philkryder
4 Comments
 
LVL 53

Accepted Solution

by:
Will Szymkowski earned 300 total points
Comment Utility
I am assuming that you are talking about NTFS permissions? You are looking for deny permissions on directories?

You can use SolarWinds Permission Analyzer (free) - http://www.solarwinds.com/products/freetools/permissions_analyzer_for_active_directory/

You can also use powershell to accomplish this. Use the below syntax...

Get-Childitem -Path <rootpath> -recurse | get-acl | out-file c:\directories.csv

Open in new window


Will.
0
 
LVL 1

Author Comment

by:philkryder
Comment Utility
I'm actually looking for inheritance being blocked.
is that the same?
I don't think so...
0
 
LVL 21

Assisted Solution

by:yo_bee
yo_bee earned 200 total points
Comment Utility
You can try this Powershell Script.

$dir = 'Replace with parent folder directory path '

Get-ChildItem  $dir -Directory -Recurse  ? {
 Get-Acl $_.FullName | % {
 $_.GetAccessRules($true, $true, 'System.Security.Principal.NTAccount') |
 ? {!$_.IsInherited}
 }
 }

Open in new window


Or

$dir = 'Replace with parent folder directory path '
Get-ChildItem $dir  -Recurse | ? {$_.PSIsContainer} | ? {
 Get-Acl $_.FullName | % {
 $_.GetAccessRules($true, $true, 'System.Security.Principal.NTAccount') |
 ? {!$_.IsInherited}
 }
 }

Open in new window

0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now