TestimoX

API Reference

Command

Get-CxTaskSddl

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

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

Examples

Authored help example

Example 1: Reads the security descriptor for a specific scheduled task.

PS>


Get-CxTaskSddl -TaskPath '\Microsoft\Windows\Defrag\ScheduledDefrag'
        

Example 2: Reads the security descriptor applied to a custom task folder on a remote server.

PS>


Get-CxTaskSddl -ComputerName APP01 -FolderPath '\TestimoX'
        

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-CxTaskSddl [-ComputerName <string>] -TaskPath <string> [<CommonParameters>]
#
Parameter set: By TaskPath

Parameters

ComputerName string optionalposition: 0pipeline: true (ByPropertyName)
Target computer(s). Use '.' for local computer or provide DNS names.
TaskPath string requiredposition: 1pipeline: false
Full scheduled task path, for example \Microsoft\Windows\Defrag\ScheduledDefrag.

Outputs

System.String

Get-CxTaskSddl [-ComputerName <string>] -FolderPath <string> [<CommonParameters>]
#
Parameter set: By FolderPath

Parameters

ComputerName string optionalposition: 0pipeline: true (ByPropertyName)
Target computer(s). Use '.' for local computer or provide DNS names.
FolderPath string requiredposition: 1pipeline: false
Full scheduled task folder path, for example \TestimoX.

Outputs

System.String