NAME

Enable-DcsTask

SYNOPSIS

Enables a task, which allows the task to run.

SYNTAX

Enable-DcsTask   -Task <Object>   [ -Connection <String> ]   [ -PipelineVariable <String> ]

DESCRIPTION

Enables a task, which allows the task to run.

PARAMETERS

-Task<Object>
TaskData object, name, or ID that identifies the task.

Required: true
Position: named
Default value:
Accept pipeline input: true (ByValue)
Accept wildcard characters: false

-Connection<String>
Alias of the connection to the server group. If not specified, the default connection is used.

Required: false
Position: named
Default value:
Accept pipeline input: false
Accept wildcard characters: false

-PipelineVariable<String>

Required: false
Position: named
Default value:
Accept pipeline input: false
Accept wildcard characters: false

INPUTS

TaskData : Object the identifies and describes the task.

OUTPUTS

TasKData : Object the identifies and describes the task.

NOTES

Also see Get-DcsTask, Set-DcsTaskProperties, Add-DcsTask, Disable-DcsTask.

EXAMPLES


-------------- Example 1 Enables a task specified by name (caption) --------------
Enable-DcsTask -Task MyNightlyTask
		

Enable the task named "MyNightlyTask", allowing it to run.

Description:Start Virtual Disk Reclamation at 2 am
Enabled:True
ActionBehavior:RunPerTrigger
MaxRunTime:6048000000000
Connective:LogicalAnd
ActionDelay:0
State:Idle
CurrentActionId:
LastStartTime:1/1/0001 12:00:00 AM
LastStopTime:1/1/0001 12:00:00 AM
Id:e0b61456-55b1-4f09-9567-39586e71ef16
Caption:MyNightlyTask
ExtendedCaption:MyNightlyTask
Internal:False
   

-------------- Example 2 Enables all tasks by piping objects --------------
Get-DcsTask | Enable-DcsTask
		

The task objects are obtained using the Get-DcsTask cmdlet and piped to Enable-DcsTask, resulting in all disabled tasks on all servers in the server group being enabled.

Description:
Enabled:True
ActionBehavior:RunPerTrigger
MaxRunTime:6048000000000
Connective:LogicalOr
ActionDelay:0
State:Idle
CurrentActionId:
LastStartTime:1/1/0001 12:00:00 AM
LastStopTime:1/1/0001 12:00:00 AM
Id:32651f76-72e9-4852-ba35-0b111eaa7808
Caption:Task 1
ExtendedCaption:Task 1
Internal:False
   
Description:
Enabled:True
ActionBehavior:RunPerTrigger
MaxRunTime:6048000000000
Connective:LogicalOr
ActionDelay:0
State:Idle
CurrentActionId:
LastStartTime:1/1/0001 12:00:00 AM
LastStopTime:1/1/0001 12:00:00 AM
Id:b72c3fac-61d0-4641-95f1-1c310b7c322d
Caption:Task 2
ExtendedCaption:Task 2
Internal:False