Title: Progress Bar problems with Remove-AppxPackage · Issue #19022 · PowerShell/PowerShell · GitHub
Open Graph Title: Progress Bar problems with Remove-AppxPackage · Issue #19022 · PowerShell/PowerShell
X Title: Progress Bar problems with Remove-AppxPackage · Issue #19022 · PowerShell/PowerShell
Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerShell 5.1 and PowerShell. Steps to reprodu...
Open Graph Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
X Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/19022
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Progress Bar problems with Remove-AppxPackage","articleBody":"### Prerequisites\n\n- [X] Write a descriptive title.\n- [X] Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\n- [X] Search the existing issues.\n- [X] Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\n- [X] Refer to [Differences between Windows PowerShell 5.1 and PowerShell](https://docs.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell).\n\n### Steps to reproduce\n\n\r\n\r\nThis script will demonstrate the problem by removing and re-installing the Calculator app. (It requires Administrator privileges to be able to re-install the app.)\r\n[BugInRemove-AppxPackage.zip](https://github.com/PowerShell/PowerShell/files/10491875/BugInRemove-AppxPackage.zip)\r\n\r\nThe work-around to re-displaying the progress bar is to run the cmdlet in a new shell. e.g.\r\n`$Env:AppxPackageName = $AppxPackage.Name`\r\n`. (Get-Process -Id $PID).Processname -Command 'Get-AppxPackage $Env:AppxPackageName | Remove-AppPackage'`\r\n\r\n\n\n### Expected behavior\n\n```console\nThe progress bar should honor the ProgressPreference and never re-display after the cmdlet completes.\n```\n\n\n### Actual behavior\n\n```console\nRemove-AppxPackage does not honor $ProgressPreference = 'SilentlyContinue'.\r\n\r\nThen, the progress bar is re-displayed and remains in view if the command is followed by [System.Console]::ReadKey().\r\n\r\nThese are probably two seperate bugs, but tied closely together.\n```\n\n\n### Error details\n\n_No response_\n\n### Environment data\n\n```powershell\nThe problem exists in V5.1 and V7.3.1\n```\n\n\n### Visuals\n\n_No response_","author":{"url":"https://github.com/RobMahn","@type":"Person","name":"RobMahn"},"datePublished":"2023-01-24T16:26:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/19022/PowerShell/issues/19022"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:de81d9d0-7de8-c0b6-2ab7-46d3fffdf724 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B81A:34F7A0:51D5347:722E63F:6A5508DD |
| html-safe-nonce | 5a3103074c37bbf2881448f84c8ee5cfbbcb3ad3840ce033f7c6dc902a28f6d1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODFBOjM0RjdBMDo1MUQ1MzQ3OjcyMkU2M0Y6NkE1NTA4REQiLCJ2aXNpdG9yX2lkIjoiMzI1OTQ2MTY3NzgzNDYzNTQ4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ccd1197750d9e0defc25c056ec0aef0102dde6a4553ae55d959269888a2b3404 |
| hovercard-subject-tag | issue:1555286350 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/19022/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5cdbb4da9996bd4c8f6f1dd0667af01607eb50762951d366cfdcab874e4c68b6/PowerShell/PowerShell/issues/19022 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5cdbb4da9996bd4c8f6f1dd0667af01607eb50762951d366cfdcab874e4c68b6/PowerShell/PowerShell/issues/19022 |
| og:image:alt | Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RobMahn |
| hostname | github.com |
| expected-hostname | github.com |
| None | eae2aab99907699a22d2c8449aa683ca74454fca87211b98f7c7b722086b2839 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6a35ab858be185cd86d12b93a43bccf34e8d8536 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width