Skip to content

Commit d2d6381

Browse files
committed
Fix typo
1 parent 203a390 commit d2d6381

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

RuleDocumentation/PSUseUsingScopeModifierInNewRunspaces.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,14 @@
77
If a ScriptBlock is intended to be run in a new RunSpace, variables inside it should use the
88
`$using:` scope modifier, or be initialized within the **ScriptBlock**. This applies to:
99

10-
- `Invoke-Command`<sup>*</sup>
10+
- `Invoke-Command`- Only with the **ComputerName** or **Session** parameter.
1111
- `Workflow { InlineScript {}}`
12-
- `Foreach-Object` <sup>**</sup>
12+
- `Foreach-Object` - Only with the **Parallel** parameter
1313
- `Start-Job`
1414
- Start-ThreadJob
1515
- The `Script` resource in DSC configurations, specifically for the `GetScript`, `TestScript` and
1616
`SetScript` properties.
1717

18-
- <sup>*</sup> - Only with the -ComputerName or -Session parameter.
19-
- <sup>*</sup> - Only with the -Parallel parameter
20-
2118
## How to Fix
2219

2320
Within the ScriptBlock, instead of just using a variable from the parent scope, you have to add the

0 commit comments

Comments
 (0)