Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
@tlsalex

Description

@tlsalex
Issue body actions

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
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.