NAME

Stop-DcsTask

SYNOPSIS

Stops a task if it is currently in the "Running" state.

SYNTAX

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

DESCRIPTION

Stops a task if it is currently in the "Running" state. The task is not disabled; the next time that the task is triggered, it will run again.

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 identifying and describing the task.

OUTPUTS

TaskData : Object identifying and describing the task.

NOTES

Also see Invoke-DcsTask, Disable-DcsTask, Enable-DcsTask.

EXAMPLES


-------------- Example 1 Stops a task specified by name --------------
Stop-DcsTask -Task ReclaimVirtualDisk1
		

Stops the running task named ReclaimVirtualDisk1.

Description:
Enabled:True
ActionBehavior:RunPerTrigger
MaxRunTime:6048000000000
Connective:LogicalOr
ActionDelay:0
State:Idle
CurrentActionId:
LastStartTime:9/19/2011 4:31:31 PM
LastStopTime:9/19/2011 4:31:33 PM
Id:6d03de54-d9bb-4228-9484-acd926819c5f
Caption:ReclaimVirtualDisk1
ExtendedCaption:ReclaimVirtualDisk1
Internal:False