Skip to content

Commit 1dcae2e

Browse files
committed
Fix schema violation
1 parent c243621 commit 1dcae2e

3 files changed

Lines changed: 15 additions & 54 deletions

File tree

reference/7.4/Microsoft.PowerShell.Core/ForEach-Object.md

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: System.Management.Automation.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Core
5-
ms.date: 04/26/2024
5+
ms.date: 04/13/2025
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/foreach-object?view=powershell-7.4&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: ForEach-Object
@@ -457,23 +457,10 @@ Output: 5
457457
458458
### Example 17: Passing variables in nested parallel scriptblocks
459459

460-
You can create a variable outside a `ForEach-Object -Parallel` scoped scriptblock and use
461-
it inside the scriptblock with the `Using:` scope modifier.
462-
463-
```powershell
464-
$test1 = 'TestA'
465-
1..2 | ForEach-Object -Parallel {
466-
$Using:test1
467-
}
468-
```
469-
470-
```Output
471-
TestA
472-
TestA
473-
```
474-
475-
Beginning in PowerShell 7.2, you can create a variable inside a `ForEach-Object -Parallel` scoped
476-
scriptblock and use it inside a nested scriptblock.
460+
You can create a variable outside a `ForEach-Object -Parallel` scoped scriptblock and use it inside
461+
the scriptblock with the `Using:` scope modifier. Beginning in PowerShell 7.2, you can create a
462+
variable inside a `ForEach-Object -Parallel` scoped scriptblock and use it inside a nested
463+
scriptblock.
477464

478465
```powershell
479466
$test1 = 'TestA'

reference/7.5/Microsoft.PowerShell.Core/ForEach-Object.md

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: System.Management.Automation.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Core
5-
ms.date: 04/26/2024
5+
ms.date: 04/13/2025
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/foreach-object?view=powershell-7.5&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: ForEach-Object
@@ -457,23 +457,10 @@ Output: 5
457457
458458
### Example 17: Passing variables in nested parallel scriptblocks
459459

460-
You can create a variable outside a `ForEach-Object -Parallel` scoped scriptblock and use
461-
it inside the scriptblock with the `Using:` scope modifier.
462-
463-
```powershell
464-
$test1 = 'TestA'
465-
1..2 | ForEach-Object -Parallel {
466-
$Using:test1
467-
}
468-
```
469-
470-
```Output
471-
TestA
472-
TestA
473-
```
474-
475-
Beginning in PowerShell 7.2, you can create a variable inside a `ForEach-Object -Parallel` scoped
476-
scriptblock and use it inside a nested scriptblock.
460+
You can create a variable outside a `ForEach-Object -Parallel` scoped scriptblock and use it inside
461+
the scriptblock with the `Using:` scope modifier. Beginning in PowerShell 7.2, you can create a
462+
variable inside a `ForEach-Object -Parallel` scoped scriptblock and use it inside a nested
463+
scriptblock.
477464

478465
```powershell
479466
$test1 = 'TestA'

reference/7.6/Microsoft.PowerShell.Core/ForEach-Object.md

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: System.Management.Automation.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Core
5-
ms.date: 04/26/2024
5+
ms.date: 04/13/2025
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/foreach-object?view=powershell-7.6&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: ForEach-Object
@@ -457,23 +457,10 @@ Output: 5
457457
458458
### Example 17: Passing variables in nested parallel scriptblocks
459459

460-
You can create a variable outside a `ForEach-Object -Parallel` scoped scriptblock and use
461-
it inside the scriptblock with the `Using:` scope modifier.
462-
463-
```powershell
464-
$test1 = 'TestA'
465-
1..2 | ForEach-Object -Parallel {
466-
$Using:test1
467-
}
468-
```
469-
470-
```Output
471-
TestA
472-
TestA
473-
```
474-
475-
Beginning in PowerShell 7.2, you can create a variable inside a `ForEach-Object -Parallel` scoped
476-
scriptblock and use it inside a nested scriptblock.
460+
You can create a variable outside a `ForEach-Object -Parallel` scoped scriptblock and use it inside
461+
the scriptblock with the `Using:` scope modifier. Beginning in PowerShell 7.2, you can create a
462+
variable inside a `ForEach-Object -Parallel` scoped scriptblock and use it inside a nested
463+
scriptblock.
477464

478465
```powershell
479466
$test1 = 'TestA'

0 commit comments

Comments
 (0)