📎 AI Summary:
The thread discusses how to examine non-inherited access permissions for files and folders in a large directory tree. The original poster seeks methods to identify permissions for specific users, especially when dealing with extensive data, and mentions experiencing memory issues with PowerShell scripts. A suggested solution involves using PowerShell's Get-ACL command, but concerns about memory constraints are raised, with recommendations to manage memory usage explicitly, considering the system's 8GB RAM and large file count.

pstein

Extraordinary Member
Joined
Mar 20, 2010
Messages
454
Thread Author #1
Assume I have a big directory tree.

1.) How can I find out all (non-inherited) access permissions of user unequal to the current owner?

2.) How can I find out all (non-inherited) access permissions of users which are unequal to "Administrators" and "peter'?

3.) How can I find out all (non-inherited) access permissions of users which are equal to "foobar"'?

Peter
 

Last edited:
Solution
Powershell technically is running binary code. You can simply force garbage collection to keep memory usage down.

Regardless of how you do it data will be stored in memory and if you have extreme memory constraints you will need to write custom code or script to keep from exhausting memory.

How much memory do you have and how many objects are you processing?

Neemobeer

Windows Forum Team
Staff member
Joined
Jul 4, 2015
Messages
8,995
You could accomplish this pretty easily with Powershell from the Get-ACL cmdlet. I can write some examples when I have some time later today.
 

pstein

Extraordinary Member
Joined
Mar 20, 2010
Messages
454
Thread Author #3
Nice suggestion. Thank you

Unfortunately I have out-of-memory problems when running Powershell scripts over huge directory trees.

So I would prefer a binary tool
 

Neemobeer

Windows Forum Team
Staff member
Joined
Jul 4, 2015
Messages
8,995
Powershell technically is running binary code. You can simply force garbage collection to keep memory usage down.

Regardless of how you do it data will be stored in memory and if you have extreme memory constraints you will need to write custom code or script to keep from exhausting memory.

How much memory do you have and how many objects are you processing?
 

Solution

Neemobeer

Windows Forum Team
Staff member
Joined
Jul 4, 2015
Messages
8,995
You wouldn't run out of memory then and even then you can add explicated memory clean up code.