Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

acl reporter for just folders

Posted on 2014-02-11
3
Medium Priority
?
1,082 Views
Last Modified: 2014-02-18
are there any tools out there, or scripts that will do an ACL report for a specific level, i.e.

\\server\share - do an ACL report for all root level sub directories in this share.

the only thing that comes close is accessEnum but it does all folders, sub folders, files, so the end report becomes ridiculous. I just want a tool where you can specify how deep to scan and limit to only directories.
0
Comment
Question by:pma111
3 Comments
 
LVL 14

Accepted Solution

by:
Alex Green earned 2000 total points
ID: 39849796
The only thing I know of that would beclose would be the following script

$OutFile = "C:\Permissions.csv"
$Header = "Folder Path,IdentityReference,AccessControlType,IsInherited,InheritanceFlags,PropagationFlags"
Del $OutFile
Add-Content -Value $Header -Path $OutFile 

$RootPath = "C:\Test"

$Folders = dir $RootPath -recurse | where {$_.psiscontainer -eq $true}

foreach ($Folder in $Folders){
	$ACLs = get-acl $Folder.fullname | ForEach-Object { $_.Access  }
	Foreach ($ACL in $ACLs){
	$OutInfo = $Folder.Fullname + "," + $ACL.IdentityReference  + "," + $ACL.AccessControlType + "," + $ACL.IsInherited + "," + $ACL.InheritanceFlags + "," + $ACL.PropagationFlags
	Add-Content -Value $OutInfo -Path $OutFile
	}}

Open in new window


Change the root path to the folder or drive you want to scan
0
 
LVL 18

Expert Comment

by:Sushil Sonawane
ID: 39850081
0
 
LVL 3

Author Comment

by:pma111
ID: 39850085
accessenum though, as I clearly put in my quetion, you cant restrict the tool to a certain level, i.e. only folders, can you? i.e. if i specify a folder, its going to do an acl for all sub folders and files, which isnt what I am after

what I am after, is to only list the acl for root level folders in a specific directory

so if I specify \\server\share

I want the acl for \\server\share\folder 1, \\server\share\folder 2

I dont care about the acl for \\server\sharefolder1\ee.docx or \\server\share\folder1\subfolder2\ee.xlsx
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Issue: One Windows 2008 R2 64bit server on the network unable to connect to a buffalo Device (Linkstation) with firmware version 1.56. There are a total of four servers on the network this being one of them. Troubleshooting Steps: Connect via h…
Users of Windows 10 Professional can disable automatic reboots using the policy editor. This tool is not included in the Windows home edition. But don't worry! Follow the instructions below to install (a Win7) policy editor on your Windows 10 Home e…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Suggested Courses

877 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