Export (0) Print
Expand All

Skip-WASJobInstance

Windows Server 2012 R2 and Windows 8.1

Updated: October 17, 2013

Applies To: Windows 8.1, Windows PowerShell 4.0, Windows Server 2012 R2

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.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1

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

Related topics

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft