TestimoX

API Reference

Command

Set-CxSacl

Namespace ComputerX.PowerShell
Outputs
System.Boolean

Sets a resource SACL (audit) from SDDL for File, Registry, or Service.

Examples

Generated fallback example

Generated fallback example from parameter set 'By Name'.


Set-CxSacl -Type 'File' -Sddl 'Value' -Name 'Name'
        

Generated fallback example from parameter set 'By KeyPath'.


Set-CxSacl -Type 'File' -Sddl 'Value' -KeyPath 'C:\Path'
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

Set-CxSacl -Type <File|Registry|Service> -Sddl <string> -Path <string> [<CommonParameters>]
#
Parameter set: By Path

Parameters

Type SaclKind requiredposition: 0pipeline: falsevalues: 3
Gets or sets the Type parameter. Possible values: File, Registry, Service
Possible values: File, Registry, Service
Sddl string requiredposition: 1pipeline: false
Gets or sets the Sddl parameter.
Path string requiredposition: 2pipeline: false
File system path to the target resource.

Outputs

System.Boolean

Set-CxSacl -Type <File|Registry|Service> -Sddl <string> [-ComputerName <string>] -KeyPath <string> [<CommonParameters>]
#
Parameter set: By KeyPath

Parameters

Type SaclKind requiredposition: 0pipeline: falsevalues: 3
Gets or sets the Type parameter. Possible values: File, Registry, Service
Possible values: File, Registry, Service
Sddl string requiredposition: 1pipeline: false
Gets or sets the Sddl parameter.
ComputerName string optionalposition: 2pipeline: false
Target computer(s). Use '.' for local computer or provide DNS names.
KeyPath string requiredposition: 3pipeline: false
Gets or sets the KeyPath parameter.

Outputs

System.Boolean

Set-CxSacl -Type <File|Registry|Service> -Sddl <string> [-ServiceComputerName <string>] -Name <string> [<CommonParameters>]
#
Parameter set: By Name

Parameters

Type SaclKind requiredposition: 0pipeline: falsevalues: 3
Gets or sets the Type parameter. Possible values: File, Registry, Service
Possible values: File, Registry, Service
Sddl string requiredposition: 1pipeline: false
Gets or sets the Sddl parameter.
ServiceComputerName string optionalposition: 2pipeline: false
Gets or sets the ServiceComputerName parameter.
Name string requiredposition: 3pipeline: false
Name identifier for the target resource.

Outputs

System.Boolean