Stop-WASJobInstance

Stop-WASJobInstance

Cancels the specified job instance. The JobInstance parameter is required.

구문

Parameter Set: Default
Stop-WASJobInstance [-JobInstance] <WASJobInstance[]> [ <CommonParameters>]

자세한 설명

The Stop-WASJobInstance cmdlet cancels the specified job instance. The JobInstance parameter is required.

매개 변수

-JobInstance<WASJobInstance[]>

Specifies the job instances you want to cancel. This is a required parameter. To get a list of job instances associated with a job, use the Get-WASJobInstance cmdlet.

별칭

없음

필수 여부

true

위치

1

기본값

없음

파이프라인 입력 적용 여부

true (ByValue)

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).

입력

입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.

출력

출력 유형은 cmdlet이 내보내는 개체의 유형입니다.

예제

Example 1 - Cancel all job instances for the specified job

This command gets a job based on the JobID, saves it to a variable, and then gets the job instances for that job. The final command cancels all the job instances for the specified job.

PS C:\> $Job = Get-WasJob -JobID '88fa238c-e83c-44f6-afd8-c0b640059422'
PS C:\> $JobInstance = Get-WasJobInstance -Job $Job
PS C:\> Stop-WasJobInstance $JobInstance

관련 항목

Get-WASJob

Get-WASJobInstance

Windows Assessment Services Technical Reference