I have the following:
$dir = ".\AES.key"
$Acl = Get-Acl -Path $dir
$Acl.Access | ft
Which returns me:
FileSystemRights AccessControlType IdentityReference IsInherited InheritanceFlags PropagationFlags
---------------- ----------------- ----------------- ----------- ---------------- ----------------
FullControl Allow NT-AUTORITÄT\SYSTEM True None None
FullControl Allow VORDEFINIERT\Administratoren True None None
FullControl Allow GOOGLE\steso True None None
Is there any way to delete all entries except "GOOGLE\steso" from PowerShell. Thanks in advance