Skip to content

foreach -Parallel does not show up the progress bar #14254

@tlsalex

Description

@tlsalex

Steps to reproduce

I try to copy file to multiple computers with:

PS C:\Work> $anps | foreach -Parallel {Copy-Item -Path C:\Install\AN\alila20200117.exe -ToSession $_ -Destination c:\software -Verbose} -Verbose

Expected behavior

I hope it will show up the progress bar, just like what it will do in PSVersion 5.1.18362.1171
image

Actual behavior

It just show me it's copying to which computer, without progress bar.

PS C:\Work> $anps | foreach -Parallel {Copy-Item -Path C:\Install\AN\alilang20200117.exe -ToSession $_ -Destination c:\software -Verbose} -Verbose
VERBOSE: Performing the operation "Copy File" on target "Item: C:\Install\AN\alila20200117.exe Destination: c:\software".
VERBOSE: Performing the operation "Copy File" on target "Item: C:\Install\AN\alila20200117.exe Destination: c:\software".
VERBOSE: Performing the operation "Copy File" on target "Item: C:\Install\AN\alila20200117.exe Destination: c:\software".
VERBOSE: Performing the operation "Copy File" on target "Item: C:\Install\AN\alila20200117.exe Destination: c:\software".

Environment data

Name                           Value
----                           -----
PSVersion                      7.1.0
PSEdition                      Core
GitCommitId                    7.1.0
OS                             Microsoft Windows 6.3.9600
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIssue has been identified as a bug in the productResolution-No ActivityIssue has had no activity for 6 months or moreWG-Enginecore PowerShell engine, interpreter, and runtime

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions