File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
3.0/Microsoft.PowerShell.Core
4.0/Microsoft.PowerShell.Core
5.0/Microsoft.PowerShell.Core
5.1/Microsoft.PowerShell.Core Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -103,14 +103,14 @@ This command resumes all suspended jobs on the Srv01 remote computer.
103
103
The command uses the Invoke-Command cmdlet to run a command on the Srv01 computer.
104
104
The remote command uses the ** State** parameter of the Get-Job cmdlet to get all suspended jobs on the computer.
105
105
A pipeline operator (|) sends the suspended jobs to the ** Resume-Job** cmdlet, which resumes them.
106
- ### Example 4 : Wait for jobs to resume
106
+ ### Example 5 : Wait for jobs to resume
107
107
```
108
108
PS C:\> Resume-Job -Name WorkflowJob, InventoryWorkflow, WFTest* -Wait
109
109
```
110
110
111
111
This command uses the ** Wait** parameter to direct Resume-Job to return only after all specified jobs are resumed.
112
112
The ** Wait** parameter is especially useful in scripts that assume that jobs are resumed before the script continues.
113
- ### Example 5 : Resume a Workflow that Suspends Itself
113
+ ### Example 6 : Resume a Workflow that Suspends Itself
114
114
```
115
115
This code sample shows the **Suspend-Workflow** activity in a workflow.
116
116
#SampleWorkflow
Original file line number Diff line number Diff line change @@ -110,15 +110,15 @@ The command uses the Invoke-Command cmdlet to run a command on the Srv01 compute
110
110
The remote command uses the ** State** parameter of the Get-Job cmdlet to get all suspended jobs on the computer.
111
111
A pipeline operator (|) sends the suspended jobs to the ** Resume-Job** cmdlet, which resumes them.
112
112
113
- ### Example 4 : Wait for jobs to resume
113
+ ### Example 5 : Wait for jobs to resume
114
114
```
115
115
PS C:\> Resume-Job -Name WorkflowJob, InventoryWorkflow, WFTest* -Wait
116
116
```
117
117
118
118
This command uses the ** Wait** parameter to direct Resume-Job to return only after all specified jobs are resumed.
119
119
The ** Wait** parameter is especially useful in scripts that assume that jobs are resumed before the script continues.
120
120
121
- ### Example 5 : Resume a Workflow that Suspends Itself
121
+ ### Example 6 : Resume a Workflow that Suspends Itself
122
122
```
123
123
This code sample shows the **Suspend-Workflow** activity in a workflow.
124
124
#SampleWorkflow
Original file line number Diff line number Diff line change @@ -111,15 +111,15 @@ The command uses the Invoke-Command cmdlet to run a command on the Srv01 compute
111
111
The remote command uses the * State* parameter of the ** Get-Job** cmdlet to get all suspended jobs on the computer.
112
112
A pipeline operator (|) sends the suspended jobs to the ** Resume-Job** cmdlet, which resumes them.
113
113
114
- ### Example 4 : Wait for jobs to resume
114
+ ### Example 5 : Wait for jobs to resume
115
115
```
116
116
PS C:\> Resume-Job -Name WorkflowJob, InventoryWorkflow, WFTest* -Wait
117
117
```
118
118
119
119
This command uses the * Wait* parameter to direct ** Resume-Job** to return only after all specified jobs are resumed.
120
120
The * Wait* parameter is especially useful in scripts that assume that jobs are resumed before the script continues.
121
121
122
- ### Example 5 : Resume a workflow that suspends itself
122
+ ### Example 6 : Resume a workflow that suspends itself
123
123
```
124
124
This code sample shows the **Suspend-Workflow** activity in a workflow.
125
125
#SampleWorkflow
Original file line number Diff line number Diff line change @@ -111,15 +111,15 @@ The command uses the Invoke-Command cmdlet to run a command on the Srv01 compute
111
111
The remote command uses the * State* parameter of the ** Get-Job** cmdlet to get all suspended jobs on the computer.
112
112
A pipeline operator (|) sends the suspended jobs to the ** Resume-Job** cmdlet, which resumes them.
113
113
114
- ### Example 4 : Wait for jobs to resume
114
+ ### Example 5 : Wait for jobs to resume
115
115
```
116
116
PS C:\> Resume-Job -Name WorkflowJob, InventoryWorkflow, WFTest* -Wait
117
117
```
118
118
119
119
This command uses the * Wait* parameter to direct ** Resume-Job** to return only after all specified jobs are resumed.
120
120
The * Wait* parameter is especially useful in scripts that assume that jobs are resumed before the script continues.
121
121
122
- ### Example 5 : Resume a workflow that suspends itself
122
+ ### Example 6 : Resume a workflow that suspends itself
123
123
```
124
124
This code sample shows the **Suspend-Workflow** activity in a workflow.
125
125
#SampleWorkflow
You can’t perform that action at this time.
0 commit comments