Implicit-remoting modules, at least as used by the Windows PowerShell Compatibility feature, do not honor $ProgressPreference
#19063
Labels
Needs-Triage
The issue is new and needs to be triaged by a work group.
Resolution-No Activity
Issue has had no activity for 6 months or more
WG-Remoting
PSRP issues with any transport layer
Prerequisites
Steps to reproduce
The Windows PowerShell Compatibility feature auto-generates script modules that use implicit remoting, such as for the
Appx
module.Several of the
Appx
module's cmdlets put up a progress bar, such asAdd-AppxPackage
.It is currently impossible to silence their progress display via implicit remoting, even with
$global:ProgressPreference = 'SilentlyContinue'
(the use of a global variable is - unfortunately - required due to a fundamental problem with how script modules (don't) see a caller's preference variables - see #4568)Expected behavior
No progress bar should show.
Actual behavior
A progress bar generated by
Add-AppxPackage
is shown.Note: The fact that the progress bar stays visible even though
Add-AppxPackage
has already terminated is a separate problem stemming from the cmdlet neglecting to hide the progress bar on termination:Error details
No response
Environment data
Visuals
No response
The text was updated successfully, but these errors were encountered: