Set-Acl - Powershell 2.0 CmdLet
Microsoft Windows PowerShell is a command-line shell and scripting tool based on the Microsoft .NET Framework. It is designed for system administrators, engineers and developers to control and automate the administration of Windows and applications.
More than hundred command-line tools (so called "cmdlets") can be used to perform system administration tasks and Windows Management Instrumentation (WMI). These cmdlets are easy to use, with standard naming conventions and common parameters, and standard tools for piping, sorting, filtering, and formatting data and objects.
Short description Changes the security descriptor of a specified resource, such as a file or a registry key. Syntax Set-Acl [-Path] <string> [-AclObject] <ObjectSecurity> [-Exclude <string>] [-Filter <string>] [-Include <string >] [-PassThru] [-Confirm] [-WhatIf] [-UseTransaction] [<CommonParameters>] Description The Set-Acl cmdlet changes the security descriptor of a specified resource, such as a file or a registry key, to ma tch the values in a security descriptor that you supply. To use Set-Acl, use the Path parameter to identify the resource whose security descriptor you want to change, and u se the AclObject parameter to supply a security descriptor that has the values you want to apply. Set-Acl uses the value of the AclObject parameter as a model and changes the values in the resource's security descriptor to match t he values in the AclObject parameter.