< Back

Update-ACL

Fri Jan 10, 2020 6:39 pm

NAME Update-ACL



SYNOPSIS

Update-ACL modifies owner and updates for files





SYNTAX

Update-ACL -Path <Object> [-Rights {ListDirectory | ReadData | WriteData | CreateFiles | CreateDirectories |

AppendData | ReadExtendedAttributes | WriteExtendedAttributes | Traverse | ExecuteFile |

DeleteSubdirectoriesAndFiles | ReadAttributes | WriteAttributes | Write | Delete | ReadPermissions | Read |

ReadAndExecute | Modify | ChangePermissions | TakeOwnership | Synchronize | FullControl}] [-InheritanceFlag {None

| ContainerInherit | ObjectInherit}] [-PropagationFlag {None | NoPropagateInherit | InheritOnly}] [-Access {Allow

| Deny}] -Principal <String> -UpdateType <String> [-WhatIf] [-Confirm] [<CommonParameters>]



Update-ACL -Path <Object> -Principal <String> [-SetAdminOwner] [-WhatIf] [-Confirm] [<CommonParameters>]



Update-ACL -Path <Object> [-Reset] [-WhatIf] [-Confirm] [<CommonParameters>]



Update-ACL -Path <Object> [-DisableInheritance] [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Update-ACL leverages the System.Security.AccessControl .net class to set file and folder permissions





PARAMETERS

-Path <Object>

Path of folders or files that needs permission changes



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Rights

The rights that are granted to the user. You may assign any of the following rights:

AppendData,ChangePermissions,CreateDirectories,CreateFiles,Delete,DeleteSubdirectoriesAndFiles,