Sets or updates the security on a given resource to the specified security descriptor.
Note: The existing security descriptor is completely replaced.
Syntax:
Set-QResourceSecurity [-SDDL] <String> [-ResourceUri] <String> [-ResType] <String> [-DomainDNSName] <String> [-HostDownLevelName] <String> [<CommonParameters>]
Parameter | Description |
---|---|
SDDL | Specify the security descriptor (SDDL format) to be set. |
ResourceUri | Specify the path to the resource that you want to set the security for. |
ResType |
Specify the resource type of the resource to have its security descriptor set. Valid values are:
|
DomainDNSName | Specify the DNS name of the resource's domain. |
HostDownLevelName | Specify the downlevel name of the host where the resource resides. |
Examples:
Example | Description |
---|---|
Set-QResourceSecurity -SDDL "O:BAG:DUD:AI(A;;FA;;;BA)(A;OICIID;FA;;;BA)(A;OICIID;FA;;;SY)(A;OICIIOID;GA;;;CO) (A;OICIID;0x1200a9;;;BU)(A;CIID;LC;;;BU)(A;CIID;DC;;;BU)S:PAI" -ResourceUri "\\QAMAUTOMem1\c$\autoroot\test_folder" -ResType Folders -DomainDNSName QAMAUTO.QC.HAL.CA.QSFT -HostDownLevelName QAMAUTOMem1 |
Sets the security on the specified resource to the specified SDDL on the computer qamautomem1 in the domain qamauto.qc.hal.ca.qsft. |