Get-WASJobInstance

Get-WASJobInstance

Gets a list of job instances.

Sintaxis

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

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

Descripción detallada

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.

Parámetros

-Job<WASJob[]>

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

Alias

ninguno

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

true (ByValue)

¿Aceptar caracteres comodín?

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.

Alias

ninguno

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

true (ByValue)

¿Aceptar caracteres comodín?

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.

Alias

ninguno

¿Requerido?

false

¿Posición?

2

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

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.

Alias

ninguno

¿Requerido?

false

¿Posición?

3

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

Ejemplos

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}

Temas relacionados

Get-WASJobInstanceStatus

Skip-WASJobInstance

Stop-WASJobInstance

Windows Assessment Services Technical Reference