Title: Get-Help keeps returning help it already loaded after Update-Help -Scope CurrentUser, which makes HelpSystem.Tests.ps1 flaky when $PSHOME has help · Issue #28274 · PowerShell/PowerShell · GitHub
Open Graph Title: Get-Help keeps returning help it already loaded after Update-Help -Scope CurrentUser, which makes HelpSystem.Tests.ps1 flaky when $PSHOME has help · Issue #28274 · PowerShell/PowerShell
X Title: Get-Help keeps returning help it already loaded after Update-Help -Scope CurrentUser, which makes HelpSystem.Tests.ps1 flaky when $PSHOME has help · Issue #28274 · 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/28274
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Get-Help keeps returning help it already loaded after Update-Help -Scope CurrentUser, which makes HelpSystem.Tests.ps1 flaky when $PSHOME has help","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://learn.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell).\n\n### Steps to reproduce\n\nWith help installed in `$PSHOME` (e.g. after `Update-Help -Scope AllUsers`, or a distribution package that ships help), and an empty CurrentUser help folder:\n\n # Help loaded before Update-Help is cached for the session:\n pwsh -NoProfile -c \"Get-Help Import-Module -Parameter NoClobber | Out-Null\n Update-Help -Module Microsoft.PowerShell.Core -SourcePath ./test/powershell/engine/Help/assets -UICulture en-US -Force -Scope CurrentUser\n (Get-Help Import-Module -Parameter NoClobber | Out-String) -match 'Aliases\\s+NoOverwrite'\"\n False\n\n # Without the first Get-Help, or in a new session, the new CurrentUser help is used:\n True\n\n### Expected behavior\n\n```console\nAfter `Update-Help`, Get-Help in the same session returns the updated help.\n```\n\n### Actual behavior\n\n```console\nGet-Help keeps returning the help it loaded from `$PSHOME` before the update.\n\nThis makes `test/powershell/engine/Help/HelpSystem.Tests.ps1` flaky. \"Validate that get-help works for CurrentUserScope\" installs the test help with `Update-Help -Scope CurrentUser`, then expects `Aliases NoOverwrite` for `Import-Module -NoClobber`. When an earlier test in the same Pester session already loaded `Import-Module` help from `$PSHOME`, it gets the shipped help instead (`Aliases none`) and fails. Your CI has no help in `$PSHOME`, so it isn't affected. \"help can be found for CurrentUser Scope\" removes the `$PSHOME` help first, so it isn't affected either.\n\nThat test removes help from `$PSHOME` (`Remove-Item $coreHelpFilePath` and so on), so it also deletes shipped help when the tests run against an installed or packaged PowerShell.\n```\n\n### Error details\n\n```console\n\n```\n\n### Environment data\n\n```powershell\nPowerShell 7.6.9 on Arch Linux x86_64, built from source with en-US help installed in `$PSHOME`\n\nName Value\n---- -----\nPSVersion 7.6.9\nPSEdition Core\nGitCommitId 7.6.9\nOS Arch Linux\nPlatform Unix\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\nPSRemotingProtocolVersion 2.4\nSerializationVersion 1.1.0.1\nWSManStackVersion 3.0\n```\n\n### Visuals\n\n_No response_","author":{"url":"https://github.com/ChrisTX","@type":"Person","name":"ChrisTX"},"datePublished":"2026-10-28T16:32:43Z","url":"https://github.com/PowerShell/PowerShell/issues/28274"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:190276d0-f06f-a768-af27-6218be26d066 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BADE:387143:1A0A9EF:2470388:6AFD0866 |
| html-safe-nonce | 7a261fcccae8a6ca60ac7d6ac1bfc5a541c60469284b581f659eb3f3d29b4be9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQURFOjM4NzE0MzoxQTBBOUVGOjI0NzAzODg6NkFGRDA4NjYiLCJ2aXNpdG9yX2lkIjoiMzc1MDYyMTc4MTE5NTI5NDgyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e9066fd4da7f6bd2b1d746fa0ebc4f49481b7f6b7bafbafe3e6470d818093ae9 |
| hovercard-subject-tag | issue:6083180902 |
| 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/28274/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6a5e46af9f9d9e77bc0335c5551360ac72b8321bd63eacc40537d543f5bb4575/PowerShell/PowerShell/issues/28274 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6a5e46af9f9d9e77bc0335c5551360ac72b8321bd63eacc40537d543f5bb4575/PowerShell/PowerShell/issues/28274 |
| 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 | ChrisTX |
| hostname | github.com |
| expected-hostname | github.com |
| None | b29de2abb97b6307b16270785efeb58b51a117d5a9b659acf00b77aa00e7043b |
| 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 | 8c9e619def6d670dc18a45d3b02cea938c1c7e47 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width