Export (0) Print
Expand All

Skip-WASJobInstance

Published: March 30, 2012

Updated: September 15, 2012

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

Related topics

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