Resume-WASComputer
Releases a hold on a test computer, and continues with the next action.
Syntax
Resume-WASComputer
[-Computer] <WASComputer[]>
[-Retry]
[<CommonParameters>]
Description
The Resume-WASComputer cmdlet instructs dep_nextref_was to skip the current action on a specific computer and move to the next action. This command releases the hold on a specified computer. The Computer parameter is required.
Examples
Example 1
PS C:\> $Computer = Get-WASComputer -ComputerName 'TestComputer1'
PS C:\> Resume-WASComputer -Computer $Computer
Gets the test computer named "TestComputer1", saves it as a variable, and then resumes the computer. This releases the hold on the computer so that it can continue with the next action.
Example 2
PS C:\> $Computer = Get-WASComputer
PS C:\> Resume-WASComputer -Computer $Computer
Gets an array of all the test computers in inventory, saves it as a variable, and then resumes all the computer in the array. This releases the hold on them so that the next action can continue.
Parameters
-Computer
Specifies the computer or computers that you want to resume. This is a required parameter.
Type: | WASComputer[] |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Retry
Resumes the job and retries the action that failed, before going on to the next action.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
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