TestimoX

API Reference

Command

Set-CxTaskSddl

Namespace ComputerX.PowerShell
Inputs
System.String
Outputs
System.Boolean

Sets the SDDL security descriptor for a scheduled task or task folder.

Examples

Authored help example

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 TaskPath

Parameters

ComputerName string optionalposition: 0pipeline: true (ByPropertyName)
Target computer name. Use . for the local machine or provide a DNS/NetBIOS name. When omitted, the local computer is queried.
TaskPath string requiredposition: 1pipeline: false
Full scheduled task path, for example \TestimoX\Collector.
Sddl string requiredposition: 2pipeline: false
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 FolderPath

Parameters

ComputerName string optionalposition: 0pipeline: true (ByPropertyName)
Target computer name. Use . for the local machine or provide a DNS/NetBIOS name. When omitted, the local computer is queried.
FolderPath string requiredposition: 1pipeline: false
Full scheduled task folder path, for example \TestimoX.
Sddl string requiredposition: 2pipeline: false
Security descriptor definition language string to apply to the task or folder.

Outputs

System.Boolean