Skip to content

ForEach-Object -Parallel cmdlet needs clarification about using variable scope #5436

@PaulHigin

Description

@PaulHigin

Documentation Issue

This is related to Issue (PowerShell/PowerShell#11817). Using variables can be used in nested ForEach-Object -Parallel calls, but need to be defined in each scope. This needs to be made clear in the documents (and also about_Concurrency document when it is written).

Waiting on PowerShell/PowerShell#14548

Context of the issue

  • URL to the article (Docs or GitHub URL):

  • Issue affects the following content (check all that apply):

    Cmdlet reference & about_ topics

    • Version 7.x preview content
    • Version 7.0 content
    • Version 6 content
    • Version 5.1 content

    Conceptual articles

    • Fundamental conceptual articles
    • Script sample articles
    • DSC articles
    • Gallery articles
    • JEA articles
    • WMF articles
    • SDK articles
  • Is the issue specific to a platform (Y/N - Win/macOS/Linux):

Detailed description of the issue

Metadata

Metadata

Assignees

Labels

area-coreArea - Microsoft.PowerShell.Core modulearea-parallelismArea - Parallel processing (ForEach-Object, Jobs, etc)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions