-
Notifications
You must be signed in to change notification settings - Fork 38
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
Expand-Archive ignores ProgressPreference = 'SilentlyContinue' and fails over SSH #77
Comments
Workaround
|
I run from |
Probably archive should be big enough to repro. |
This is actually a limitation of script modules. Script modules inherit variable scope from the global scope, instead of from the calling script scope. The simple workaround is to set the preference variable in global scope: $global:ProgressPreference = "SilentlyContinue" More info: |
When running on Windows Server 2019 via SSH this results in `Win32 internal error "Access is denied" 0x5 occurred while reading the console output buffer. Contact Microsoft Customer Support Services.`. Changes prevent issues with CLI non-interactive execution on Window Server 2019 by suppressing process bar for Expand-Archive command (see: PowerShell/Microsoft.PowerShell.Archive#77) Tested on Windows Server 2019 & 2022
When running on Windows Server 2019 via SSH this results in `Win32 internal error "Access is denied" 0x5 occurred while reading the console output buffer. Contact Microsoft Customer Support Services.`. Changes prevent issues with CLI non-interactive execution on Window Server 2019 by suppressing process bar for Expand-Archive command (see: PowerShell/Microsoft.PowerShell.Archive#77) Tested on Windows Server 2019 & 2022
Install client of open ssh on windows https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse
install server on windows https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse
Run script which expands archive over SSH:
Actual:
Expected:
Invoke-WebRequest
and $ProgressPreference = 'SilentlyContinue'Machine which fails
Versions:
6.2.1 has same issue.
I expect Expand-Archive to work fine on Windows Server 2019 over Open SSH.
The text was updated successfully, but these errors were encountered: