Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xRemoteFile is very slow #383

Closed
draggeta opened this issue Dec 13, 2017 · 1 comment
Closed

xRemoteFile is very slow #383

draggeta opened this issue Dec 13, 2017 · 1 comment
Labels
bug The issue is a bug.

Comments

@draggeta
Copy link

draggeta commented Dec 13, 2017

I noticed that downloading files with xRemoteFile is very slow. From what I've read in the link below and the tests I've performed, I can confirm that it is due to the way the progress bar is rendered. This is really bad. Is it possible to disable the progress bar in the xRemoteFile cmdlet?

Something as silly as this should work:

# Invoke web request
try
{
    Write-Verbose -Message $($LocalizedData.DownloadingURI `
        -f ${DestinationPath},${URI})
    $ProgressPreference = 'SilentlyContinue'
    Invoke-WebRequest @PSBoundParameters -Headers $headersHashtable -outFile $DestinationPath
}
catch [System.OutOfMemoryException]
{
    ...
}
catch [System.Exception]
{
    ...
}
finally 
{
    $ProgressPreference = 'Continue'
}

More info can be found here:
PowerShell/PowerShell#2138

@johlju
Copy link
Member

johlju commented May 15, 2018

It is not possible today. This is being worked on in PR #390.

@johlju johlju added bug The issue is a bug. in progress The issue is being actively worked on by someone. labels May 15, 2018
johlju pushed a commit that referenced this issue Jun 4, 2018
- Changes to xRemoteFile
  - Remove progress bar for file download (issue #165 and issue #383)
@johlju johlju removed the in progress The issue is being actively worked on by someone. label Jun 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug.
Projects
None yet
Development

No branches or pull requests

2 participants