Enable-PSFTaskEngineTask
SYNOPSIS
Enables a task registered to the PSFramework task engine.
SYNTAX
Enable-PSFTaskEngineTask [[-Name] <String[]>] [-Task] <PsfTask[]> [<CommonParameters>]
DESCRIPTION
Enables a task registered to the PSFramework task engine.
Note: Tasks are enabled by default. Use this function to re-enable a task disabled by Disable-PSFTaskEngineTask.
EXAMPLES
EXAMPLE 1
Get-PSFTaskEngineTask -Name 'mymodule.maintenance' | Enable-PSFTaskEngineTask
Enables the task named ‘mymodule.maintenance’
PARAMETERS
-Name
Name of the task to enable.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Task
The task registered. Must be a task object returned by Get-PSFTaskEngineTask.
Type: PsfTask[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByValue)
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.