One of our users is requesting a list of the users and groups that have access to two folders on the network, as well as all of the subfolders of both of these folders. There are hundreds, if not thousands, of subfolders. Is there an automated way that I can do this?
Asked
Active
Viewed 3,419 times
3 Answers
1
I would use get-acl from powershell:
get-childitem -recurse | where {$_.psiscontainer}|get-acl
this:
- gets the directory list (recursivly)
- if it so happens that the item on the pipeline is a container (folder)...
- retrieve the ACL list

Jim B
- 24,081
- 4
- 36
- 60
-
Would this specify permissions on just the folders and sub-folders, or will it also list file permissions? (The former is what I'm after) – Citizen Chin Nov 29 '11 at 16:37
-
See the edit for details – Jim B Nov 29 '11 at 16:38
0
cacls.exe
should do what you require, its a bit hard to read but that comes with the territory of doing such a task on command line.

Bart De Vos
- 17,911
- 6
- 63
- 82

Flash
- 1,310
- 7
- 13
-
Unfortunately, using cacls would be far too cumbersome and time consuming for this task. – Citizen Chin Nov 29 '11 at 16:34
0
You might also try the SolarWinds tool for this, though it's not great at recursion.

Driftpeasant
- 3,217
- 2
- 22
- 28
-
I'll give it a try. I'm currently running Systernals AccessEnum, which might be too granular. It appears that it's listing permissions for every file within the folders and subfolders, and not just the folder and subfolder permissions. – Citizen Chin Nov 29 '11 at 16:36