API Reference
Command
Set-CxTaskSddl
Sets the SDDL security descriptor for a scheduled task or task folder.
Examples
Example 1: Applies a known-good descriptor to a scheduled task on the local machine.
PS>
Set-CxTaskSddl -TaskPath '\TestimoX\Collector' -Sddl 'D:(A;;FA;;;SY)(A;;FA;;;BA)'
Example 2: Applies a folder descriptor to a custom task folder on a remote server.
PS>
Set-CxTaskSddl -ComputerName APP01 -FolderPath '\TestimoX' -Sddl 'D:(A;;FA;;;SY)(A;;FA;;;BA)(A;;FR;;;BU)'
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-CxTaskSddl [-ComputerName <string>] -TaskPath <string> -Sddl <string> [<CommonParameters>]#Parameter set:
By TaskPathParameters
- ComputerName string
- Target computer name. Use . for the local machine or provide a DNS/NetBIOS name. When omitted, the local computer is queried.
- TaskPath string
- Full scheduled task path, for example \TestimoX\Collector.
- Sddl string
- Security descriptor definition language string to apply to the task or folder.
Outputs
System.Boolean
Set-CxTaskSddl [-ComputerName <string>] -FolderPath <string> -Sddl <string> [<CommonParameters>]#Parameter set:
By FolderPathParameters
- ComputerName string
- Target computer name. Use . for the local machine or provide a DNS/NetBIOS name. When omitted, the local computer is queried.
- FolderPath string
- Full scheduled task folder path, for example \TestimoX.
- Sddl string
- Security descriptor definition language string to apply to the task or folder.
Outputs
System.Boolean