
Necesito modificar el grupo "usuarios autenticados" en una carpeta y ponerlo en control total.
Probé un script de PowerShell y no funciona y en lotes, ¿es posible ayudarme?
Aquí está el lote:
icacls c:\TEST /grant *S-1-5-11:(f)
y powershell:
$FolderPath = "C:\Program Files\Eliot"
$ACL = Get-Acl -Path $FolderPath
$SID = New-Object System.Security.Principal.SecurityIdentifier("S-1-5-11")
$Rule = new-object System.Security.AccessControl.FileSystemAccessRule($SID.Value, "FullControl",”ContainerInherit,ObjectInherit”,”None”,”Allow”)
$ACL.SetAccessRule($Rule)
Set-Acl -Path $FolderPath -AclObject $ACL