PowerShell - Get-ACL not returning all permissions
<p><br>
I tried to read out permissions from various folders with the <code>Get-ACL</code> cmdlet.<br>
It works well and I can see the authorized users with <code>Get-ACL $path | %{$_.Access}</code>. But I noticed that some permissions are missing.<br>
If I go into any folders <code>properties &gt; Security (Tab) &gt; Advanced</code> I am able to see the respective permissions and to what they apply to.<br>
Some permissions are set to apply to <code>nothing</code> and those are not shown by <code>Get-ACL</code>.</p>

<p>This leads me to my question:<br>
Is there any way to read out the <code>Applies to</code> field of an acl?<br>
I tried using the .NET function <code>[System.IO.Directory]::GetAccessControl()</code> but it didn't provide this information.</p>

<p>Any help or hint is highly appreciated!</p>

<p><strong>EDIT:</strong></p>

<p>To clarify the issue I took some screenshots:</p>

<p>This shows the permission that is set to apply to "nothing".<br>
It seems as if this is an error, since I am not able to select "nothing" for any other permission entry.</p>

<p><a href="https://i.stack.imgur.com/j2rz8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j2rz8.png" alt="Permission that applies to nothing"></a></p>

<p>And this is the acl as returned via Powershell ("OWNER RIGHTS" is missing):</p>

<p><a href="https://i.stack.imgur.com/tYbe1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tYbe1.png" alt="The &quot;nothing&quot; permission does not show"></a></p>