Skip-WASJobInstance

Drops a computer from the running job instance.

Syntax

Skip-WASJobInstance
    [-Computer] <WASComputer[]>
    [-JobInstance] <WASJobInstance[]>
    [<CommonParameters>]

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.

Examples

Example 1

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

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.

Parameters

-Computer

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

Type:WASComputer[]
Position:0
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-JobInstance

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

Type:WASJobInstance[]
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False