This is a simple question yet I could not find an answer on Google or here yet:
By using PowerShell or cmd (no third party stuff), how can I retrieve folder permissions in a way that allows me to differ between "List Folder Contents" and "ReadAndExecute"?
Right now when I execute Get-Acl on a folder, it returns the same permission level when a group grants only list access or read and execute. If I right click and go to Security tab, one group has "List folder contents" checked and another has "Read & Execute" checked, but both return "ReadAndExecute" with Get-Acl.
Pictures below:
Powershell just returns "ReadAndExecute" for both:
FileSystemRights : ReadAndExecute, Synchronize
AccessControlType : Allow
IdentityReference : group1
IsInherited : False
InheritanceFlags : ContainerInherit, ObjectInherit
PropagationFlags : None
FileSystemRights : ReadAndExecute, Synchronize
AccessControlType : Allow
IdentityReference : group2
IsInherited : False
InheritanceFlags : ContainerInherit
PropagationFlags : None