Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 2.0 » Set-Acl

Set-Acl - Powershell 2.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Set-Acl

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.