Get-WASJobInstance

Get-WASJobInstance

Gets a list of job instances.

構文

Parameter Set: FindByJob
Get-WASJobInstance [-Job] <WASJob[]> [[-Runtag] <String> ] [[-Testpass] <String> ] [ <CommonParameters>]

Parameter Set: FindByJobInstance
Get-WASJobInstance [-JobInstance] <WASJobInstance[]> [ <CommonParameters>]

詳細説明

The Get-WASJobInstance cmdlet gets a list of job instances associated with a specific job, and displays metadata for each job instance. The Job parameter is required.

パラメーター

-Job<WASJob[]>

Specifies the job object for which to retrieve job instances. This is a required parameter.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

true (ByValue)

ワイルドカード文字を許可する

false

-JobInstance<WASJobInstance[]>

Specifies the job instance for which to retrieve an updated object. You can pass a job instance of itself to get an update or copy of the job instance object.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

true (ByValue)

ワイルドカード文字を許可する

false

-Runtag<String>

Specifies the run tag for the job instance you want to get. The full name of the run tag isn't required. Wildcards are accepted. If this parameter isn't specified, all job instances are listed.

エイリアス

なし

必須?

false

位置は?

2

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Testpass<String>

Specifies the test pass for the job instance you want to get. The full name of the test pass isn't required. Wildcards are accepted. If this parameter isn't specified, all job instances are listed.

エイリアス

なし

必須?

false

位置は?

3

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

Example 1: Get all job instances for a job

This command gets all the jobs with "automated" in the job name, assigns it to a variable, and then gets all the job instances for the job.

PS C:\> $job = Get-WASJob -JobName *automated*
Get-GetJobInstance -Job $job

Example 2: Get all running job instances for a job

This command gets all the jobs with "automated" in the job name, assigns it to a variable, and then gets all the job instances that are currently running for the job.

PS C:\> $job = Get-WASJob -JobName *automated*
PS C:\> Get-WASJobInstance -Job $job | where {$_.IsComplete -eq $false }

Example 3: Get all running job instances

This command gets all the jobs that are currently running using server.

PS C:\> $job = Get-WASJob | Get-WASJobInstance | where {$_.IsComplete -eq $false}

関連トピック

Get-WASJobInstanceStatus

Skip-WASJobInstance

Stop-WASJobInstance

Windows Assessment Services Technical Reference