How to Get ACL for a Folder
source: https://www.netwrix.com/how_to_get_acl_for_a_folder.html
NATIVE AUDITINGNETWRIX AUDITOR FOR WINDOWS FILE SERVERS
- Open the Powershell ISE → Create a new script using the following code:
$path = “\\pdc\Shared\Accounting” #define path to the shared folder
$reportpath =”C:\data\ACL.csv” #define path to export permissions report
#script scans for directories under shared folder and gets acl(permissions) for all of them
dir -Recurse $path | where { $_.PsIsContainer } | % { $path1 = $_.fullname; Get-Acl $_.Fullname | % { $_.access | Add-Member -MemberType NoteProperty ‘.\Application Data’ -Value $path1 -passthru }} | Export-Csv $reportpath
- Specify the path to the folder of interest and where the results should be saved.
- Run the script.
- Open the file produced by the script in Microsoft Excel.

Use Windows PowerShell ISE