Updates from: 03/27/2021 04:18:55
Service Microsoft Docs article Related commit history on GitHub Change details
Microsoft.PowerShell.Core About Jobs (5.1) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/5.1/Microsoft.PowerShell.Core/About/about_Jobs.md
description: Provides information about how PowerShell background jobs run a command or expression in the background without interacting with the current session. keywords: powershell,cmdlet Locale: en-US Previously updated : 11/11/2020 Last updated : 03/26/2021 online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_jobs?view=powershell-5.1&WT.mc_id=ps-gethelp schema: 2.0.0 Title: about_Jobs
jobs types provided by PowerShell to support concurrency.
machine. - `PSTaskJob` or `ThreadJob` - Commands and scripts run in a separate thread within the same process on the local machine. For more information, see
- [about_Thread_Jobs](/powershell/module/ThreadJob/about_Thread_Jobs).
+ [about_Thread_Jobs](/powershell/module/microsoft.powershell.core/about/about_thread_jobs).
Running scripts remotely, on a separate machine or in a separate process, provides great isolation. Any errors that occur in the remote job do not affect
Microsoft.PowerShell.Core About Jobs (7.0) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.0/Microsoft.PowerShell.Core/About/about_Jobs.md
description: Provides information about how PowerShell background jobs run a command or expression in the background without interacting with the current session. keywords: powershell,cmdlet Locale: en-US Previously updated : 11/11/2020 Last updated : 03/26/2021 online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_jobs?view=powershell-7&WT.mc_id=ps-gethelp schema: 2.0.0 Title: about_Jobs
jobs types provided by PowerShell to support concurrency.
machine. - `PSTaskJob` or `ThreadJob` - Commands and scripts run in a separate thread within the same process on the local machine. For more information, see
- [about_Thread_Jobs](/powershell/module/ThreadJob/about_Thread_Jobs).
+ [about_Thread_Jobs](about_Thread_Jobs.md).
Running scripts remotely, on a separate machine or in a separate process, provides great isolation. Any errors that occur in the remote job do not affect
Microsoft.PowerShell.Core Foreach Object (7.0) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.0/Microsoft.PowerShell.Core/ForEach-Object.md
external help file: System.Management.Automation.dll-Help.xml
keywords: powershell,cmdlet Locale: en-US Module Name: Microsoft.PowerShell.Core Previously updated : 02/18/2021 Last updated : 03/26/2021 online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/foreach-object?view=powershell-7&WT.mc_id=ps-gethelp schema: 2.0.0 Title: ForEach-Object
This cmdlet returns objects that are determined by the input.
the parallel scripts are trivial. Experiment with **Parallel** to discover where it can be beneficial.
+- [PipelineVariable](About/about_CommonParameters.md) common parameter variables are _not_ supported
+ in `Foreach-Object -Parallel` scenarios even with the `$using:` keyword.
+ > [!IMPORTANT] > The `ForEach-Object -Parallel` parameter set runs script blocks in parallel on separate process > threads. The `$using:` keyword allows passing variable references from the cmdlet invocation
Microsoft.PowerShell.Core About Jobs (7.1) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.1/Microsoft.PowerShell.Core/About/about_Jobs.md
description: Provides information about how PowerShell background jobs run a command or expression in the background without interacting with the current session. keywords: powershell,cmdlet Locale: en-US Previously updated : 11/11/2020 Last updated : 03/26/2021 online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_jobs?view=powershell-7.1&WT.mc_id=ps-gethelp schema: 2.0.0 Title: about_Jobs
jobs types provided by PowerShell to support concurrency.
machine. - `PSTaskJob` or `ThreadJob` - Commands and scripts run in a separate thread within the same process on the local machine. For more information, see
- [about_Thread_Jobs](/powershell/module/ThreadJob/about_Thread_Jobs).
+ [about_Thread_Jobs](about_Thread_Jobs.md).
Running scripts remotely, on a separate machine or in a separate process, provides great isolation. Any errors that occur in the remote job do not affect
Microsoft.PowerShell.Core Foreach Object (7.1) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.1/Microsoft.PowerShell.Core/ForEach-Object.md
external help file: System.Management.Automation.dll-Help.xml
keywords: powershell,cmdlet Locale: en-US Module Name: Microsoft.PowerShell.Core Previously updated : 02/18/2021 Last updated : 03/26/2021 online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/foreach-object?view=powershell-7.1&WT.mc_id=ps-gethelp schema: 2.0.0 Title: ForEach-Object
This cmdlet returns objects that are determined by the input.
the parallel scripts are trivial. Experiment with **Parallel** to discover where it can be beneficial.
+- [PipelineVariable](About/about_CommonParameters.md) common parameter variables are _not_ supported
+ in `Foreach-Object -Parallel` scenarios even with the `$using:` keyword.
+ > [!IMPORTANT] > The `ForEach-Object -Parallel` parameter set runs script blocks in parallel on separate process > threads. The `$using:` keyword allows passing variable references from the cmdlet invocation
Microsoft.PowerShell.Core About Jobs (7.2) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.2/Microsoft.PowerShell.Core/About/about_Jobs.md
--- description: Provides information about how PowerShell background jobs run a command or expression in the background without interacting with the current session. Locale: en-US Previously updated : 11/11/2020 Last updated : 03/26/2021 online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_jobs?view=powershell-7.2&WT.mc_id=ps-gethelp schema: 2.0.0 Title: about_Jobs
jobs types provided by PowerShell to support concurrency.
machine. - `PSTaskJob` or `ThreadJob` - Commands and scripts run in a separate thread within the same process on the local machine. For more information, see
- [about_Thread_Jobs](/powershell/module/ThreadJob/about_Thread_Jobs).
+ [about_Thread_Jobs](about_Thread_Jobs.md).
Running scripts remotely, on a separate machine or in a separate process, provides great isolation. Any errors that occur in the remote job do not affect
Microsoft.PowerShell.Core Foreach Object (7.2) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.2/Microsoft.PowerShell.Core/ForEach-Object.md
external help file: System.Management.Automation.dll-Help.xml Locale: en-US Module Name: Microsoft.PowerShell.Core Previously updated : 09/08/2020 Last updated : 03/26/2021 online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/foreach-object?view=powershell-7.2&WT.mc_id=ps-gethelp schema: 2.0.0 Title: ForEach-Object
Output: 5
`Output: 3` is never written because the parallel scriptblock for that iteration was terminated.
+> [!NOTE]
+> [PipelineVariable](About/about_CommonParameters.md) common parameter variables are _not_
+> supported in `Foreach-Object -Parallel` scenarios even with the `$using:` keyword.
+ ## Parameters ### -ArgumentList
This cmdlet returns objects that are determined by the input.
the parallel scripts are trivial. Experiment with **Parallel** to discover where it can be beneficial.
+- [PipelineVariable](About/about_CommonParameters.md) common parameter variables are _not_ supported
+ in `Foreach-Object -Parallel` scenarios even with the `$using:` keyword.
+ > [!IMPORTANT] > The `ForEach-Object -Parallel` parameter set runs script blocks in parallel on separate process > threads. The `$using:` keyword allows passing variable references from the cmdlet invocation