API Reference
Command
Get-CxTaskSddl
Returns the SDDL security descriptor for a scheduled task or task folder.
Examples
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 TaskPathParameters
- ComputerName string
- Target computer(s). Use '.' for local computer or provide DNS names.
- TaskPath string
- Full scheduled task path, for example \Microsoft\Windows\Defrag\ScheduledDefrag.
Outputs
System.String
Get-CxTaskSddl [-ComputerName <string>] -FolderPath <string> [<CommonParameters>]#Parameter set:
By FolderPathParameters
- ComputerName string
- Target computer(s). Use '.' for local computer or provide DNS names.
- FolderPath string
- Full scheduled task folder path, for example \TestimoX.
Outputs
System.String