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 |
Related Links
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for