Skip to content

Get‑TaskFolderAccessRule

raandree edited this page Sep 6, 2026 · 1 revision

SYNOPSIS

Gets typed access rules from local Task Scheduler folder DACLs.

SYNTAX

Get-TaskFolderAccessRule [-Path] <Object[]> [-Account <Object[]>] [-ExcludeInherited] [-ExcludeExplicit]
 [-ThrottleLimit <Int32>] [<CommonParameters>]

DESCRIPTION

Reads the folder DACL through the in-box Task Scheduler COM API and emits exact typed access rules with Task Scheduler rights and folder inheritance scope. No remote target or credential parameter is exposed.

EXAMPLES

EXAMPLE 1

Get-TaskFolderAccessRule -Path '\Operations' -ExcludeInherited

Gets the explicit access rules on the local Operations task folder.

PARAMETERS

-Account

Filters results by account names, SIDs, identity references, or module identities.

Type: Object[]
Parameter Sets: (All)
Aliases: IdentityReference, ID

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

-ExcludeExplicit

Excludes ACEs defined directly on the folder.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-ExcludeInherited

Excludes ACEs inherited from a parent task folder.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-Path

One or more absolute local Task Scheduler folder paths.

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

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

-ThrottleLimit

Limits concurrently processed canonical folder 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.TaskFolderAccessRule

NOTES

RELATED LINKS

Home

Commands

DSC resources

Clone this wiki locally