Skip to content

Get‑ScheduledTaskSecurityDescriptor

raandree edited this page Sep 6, 2026 · 1 revision

SYNOPSIS

Gets the DACL descriptor for local registered tasks.

SYNTAX

Get-ScheduledTaskSecurityDescriptor [-TaskPath] <Object[]> -TaskName <String> [-ThrottleLimit <Int32>]
 [<CommonParameters>]

DESCRIPTION

Resolves a task by its canonical local parent folder and leaf name, then reads only its DACL through the in-box Task Scheduler COM API.

EXAMPLES

EXAMPLE 1

Get-ScheduledTaskSecurityDescriptor -TaskPath '\Operations' -TaskName 'Cleanup'

Gets the DACL descriptor for the local Cleanup task.

PARAMETERS

-TaskName

The exact leaf name of the registered task in each supplied folder.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-TaskPath

One or more absolute local Task Scheduler parent-folder paths.

Type: Object[]
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-ThrottleLimit

Limits concurrently processed canonical task targets from 1 to 64.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: [Math]::Max(1, [Math]::Min(8, [Environment]::ProcessorCount))
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.String

OUTPUTS

WindowsAccessControl.ScheduledTaskSecurityDescriptor

NOTES

RELATED LINKS

Home

Commands

DSC resources

Clone this wiki locally