API Reference
Command
Get-CxSacl
Gets a resource SACL (audit) as SDDL for File, Registry, or Service.
Examples
Example 1: Reads the SACL from a local folder before applying a new audit baseline.
PS>
Get-CxSacl -Type File -Path 'D:\Shares\Finance'
Example 2: Reads the SACL from a remote service for backup and comparison.
PS>
Get-CxSacl -Type Service -ServiceComputerName APP01 -Name Schedule
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
- Resource kind whose SACL should be returned. 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
- Resource kind whose SACL should be returned. Possible values: File, Registry, Service
- Possible values:
File,Registry,Service - ComputerName string
- Target computer name for registry SACL reads. Use . for the local machine or provide a DNS/NetBIOS name.
- KeyPath string
- Registry key path whose SACL should be returned.
Outputs
System.String
Get-CxSacl -Type <File|Registry|Service> [-ServiceComputerName <string>] -Name <string> [<CommonParameters>]#Parameter set:
By NameParameters
- Type SaclKind
- Resource kind whose SACL should be returned. Possible values: File, Registry, Service
- Possible values:
File,Registry,Service - ServiceComputerName string
- Target computer name for service SACL reads. Use . for the local machine or provide a DNS/NetBIOS name.
- Name string
- Name identifier for the target resource.
Outputs
System.String