Skip-WASJobInstance

Applies To: Windows 8, Windows Server 2012

Skip-WASJobInstance

Drops a computer from the running job instance.

Syntax

Parameter Set: Default
Skip-WASJobInstance [-Computer] <WASComputer[]> [-JobInstance] <WASJobInstance[]> [ <CommonParameters>]

Detailed Description

The Skip-WASJobInstance cmdlet drops a computer from the running job instance. The computer is removed from the job instance but is still available. The job instance continues to run on other computers included in the job.

Parameters

-Computer<WASComputer[]>

Specifies the computer to drop from the specified job instance. The computer can be in any state.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-JobInstance<WASJobInstance[]>

Specifies the job instance object that includes the computer you want to drop.

Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Examples

This command gets the computer, and saves it as a variable. It then gets all running job instances of jobs with "automated" in the name, and drops the computer from all running job instances.

PS C:\> $computer = get-wascomputer testcomputer-toast2

PS C:\> $instance = get-wasjob *automated* | get-wasjobinstance | where { $_.IsComplete -eq $false }

PS C:\> Skip-WASJobInstance -computer $computer -jobinstance $instance

Get-WASComputer

Get-WASJob

Get-WASJobInstance

Windows Assessment Services Technical Reference