API Reference
Command
Get-CxSacl
Gets a resource SACL (audit) as SDDL for File, Registry, or Service.
Examples
Generated fallback example from parameter set 'By Name'.
Get-CxSacl -Type 'File' -Name 'Name'
Generated fallback example from parameter set 'By KeyPath'.
Get-CxSacl -Type 'File' -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
Get-CxSacl -Type <File|Registry|Service> -Path <string> [<CommonParameters>]#Parameter set:
By PathParameters
- Type SaclKind
- Gets or sets the Type parameter. Possible values: File, Registry, Service
- Possible values:
File,Registry,Service - Path string
- File system path to the target resource.
Outputs
System.String
Get-CxSacl -Type <File|Registry|Service> [-ComputerName <string>] -KeyPath <string> [<CommonParameters>]#Parameter set:
By KeyPathParameters
- Type SaclKind
- Gets or sets the Type parameter. Possible values: File, Registry, Service
- Possible values:
File,Registry,Service - ComputerName string
- Target computer(s). Use '.' for local computer or provide DNS names.
- KeyPath string
- Gets or sets the KeyPath parameter.
Outputs
System.String
Get-CxSacl -Type <File|Registry|Service> [-ServiceComputerName <string>] -Name <string> [<CommonParameters>]#Parameter set:
By NameParameters
- Type SaclKind
- Gets or sets the Type parameter. Possible values: File, Registry, Service
- Possible values:
File,Registry,Service - ServiceComputerName string
- Gets or sets the ServiceComputerName parameter.
- Name string
- Name identifier for the target resource.
Outputs
System.String