< Back
Enable-PSFTaskEngineTask
Post
NAME Enable-PSFTaskEngineTask
SYNOPSIS
Enables a task registered to the PSFramework task engine.
SYNTAX
Enable-PSFTaskEngineTask [-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.
PARAMETERS
-Task <PsfTask[]>
The task registered. Must be a task object returned by Get-PSFTaskEngineTask.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-PSFTaskEngineTask -Name 'mymodule.maintenance' | Enable-PSFTaskEngineTask
Enables the task named 'mymodule.maintenance'
RELATED LINKS
SYNOPSIS
Enables a task registered to the PSFramework task engine.
SYNTAX
Enable-PSFTaskEngineTask [-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.
PARAMETERS
-Task <PsfTask[]>
The task registered. Must be a task object returned by Get-PSFTaskEngineTask.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-PSFTaskEngineTask -Name 'mymodule.maintenance' | Enable-PSFTaskEngineTask
Enables the task named 'mymodule.maintenance'
RELATED LINKS