Skip to content

Update-Help fails on Windows 10.0.20206 #13591

Open

Description

Steps to reproduce

Run command: Update-Help

Expected behavior

Should update docs

Actual behavior

Gives:

Update-Help: Failed to update Help for the module(s) 'HgsClient, HgsDiagnostics' with UI culture(s) {en-US} : A Help URI cannot contain more than 10 redirections. Specify a valid Help URI..
English-US help content is available and can be installed using: Update-Help -UICulture en-US.
Update-Help: Failed to update Help for the module(s) 'WindowsUpdateProvider' with UI culture(s) {en-US} : One or more errors occurred. (Response status code does not indicate success: 404 (Not Found).).
English-US help content is available and can be installed using: Update-Help -UICulture en-US.

Environment data

Name Value


PSVersion 7.0.3
PSEdition Core
GitCommitId 7.0.3
OS Microsoft Windows 10.0.20206
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

Activity

  1. added
    Issue-Question
    on Sep 7, 2020
  2. changed the title [-]My bug report[/-] [+]Update-Help fails on Windows 10.0.20206[/+] on Sep 7, 2020
  3. soccypowa commented on Sep 7, 2020

    @soccypowa
    Contributor

    What is your UI cuture? Obviously there is a cmdlet for that nowadays: Get-UICulture.

    What happend if you use the provided suggestion Update-Help -UICulture en-US?

    I have to use the -UICulture switch as I am on sv-SE, but with the switch and having some of the sam modules from your error message, my help download completes. Issues with Update-Help I think is an issue more of the module and less of Powershell itself....

  4. added
    WG-Interactive-HelpSystem
    on Sep 7, 2020
  5. mwoodpatrick commented on Sep 7, 2020

    @mwoodpatrick
    Author

    Get-UICulture reports:

    LCID Name DisplayName


    1033 en-US English (United States)

    Executing "Update-Help -UICulture en-US" reports:

    Update-Help: Failed to update Help for the module(s) 'HgsClient, HgsDiagnostics, WindowsUpdateProvider' with UI culture(s) {en-US} : One or more errors occurred. (An attempt was made to access a socket in a way forbidden by its access permissions.).
    English-US help content is available and can be installed using: Update-Help -UICulture en-US.

  6. kvprasoon commented on Sep 7, 2020

    @kvprasoon
    Contributor

    For WindowsUpdateProvider, refer MicrosoftDocs/windows-powershell-docs#139

    Even the other modules doesn't looks like having valid help uri. Ilya (@iSazonov) /Steve Lee (@SteveL-MSFT) Do we already handle updating help files of modules where there is no or invalid help URIs ?

  7. vexx32 commented on Sep 7, 2020

    @vexx32
    Collaborator

    Generally that's up to the individual teams that own the modules fixing the help URIs. Most of them are sorted out by now, but looks like there're still a few stragglers.

  8. iSazonov commented on Sep 7, 2020

    @iSazonov
    Collaborator

    Due to the fact that there are many modules, from time to time some help links may not work temporarily. Workaround Update-Help -Force.

  9. added
    Resolution-Answered
    on Sep 7, 2020
  10. kvprasoon commented on Sep 7, 2020

    @kvprasoon
    Contributor

    At least can we change the errors to warning in this case.

  11. iSazonov commented on Sep 7, 2020

    @iSazonov
    Collaborator

    At least can we change the errors to warning in this case.

    Common PowerShell practice is to use -ErrorAction.

  12. kvprasoon commented on Sep 7, 2020

    @kvprasoon
    Contributor

    Yes, but somehow I can't accept this as an error to ignore or continue :-)

  13. ghost closed this as completedon Sep 9, 2020
  14. mwoodpatrick commented on Sep 12, 2020

    @mwoodpatrick
    Author

    Seems like just because some team has not updated their docs this should not leave the definition of what the current state of documentation is in an inconsistent/invalid state. State should define the latest available documentation for that module. I think this bug should be reopened

  15. 70 remaining items

  16. YoraiLevi commented on Oct 11, 2025

    @YoraiLevi

    This issue should remain open until resolved if nothing else but for documentation.

    PS C:\Users\Yorai> Get-Date
    
    Saturday, October 11, 2025 11:11:03 PM
    
    PS C:\Users\Yorai> Update-Help
    Update-Help : Failed to update Help for the module(s) 'ConfigDefender, ConfigDefenderPerformance' with UI culture(s)
    {en-US} : Unable to retrieve the HelpInfo XML file for UI culture en-US. Make sure the HelpInfoUri property in the
    module manifest is valid or check your network connection and then try the command again.
    At line:1 char:1
    + Update-Help
    + ~~~~~~~~~~~
        + CategoryInfo          : ResourceUnavailable: (:) [Update-Help], Exception
        + FullyQualifiedErrorId : UnableToRetrieveHelpInfoXml,Microsoft.PowerShell.Commands.UpdateHelpCommand
    
    Update-Help : Failed to update Help for the module(s) 'Microsoft.PowerShell.Host' with UI culture(s) {en-US} : There
    are multiple root elements. Line 71, position 21.
    At line:1 char:1
    + Update-Help
    + ~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [Update-Help], Exception
        + FullyQualifiedErrorId : UnknownErrorId,Microsoft.PowerShell.Commands.UpdateHelpCommand
  17. removed
    Resolution-No Activity
    on Oct 11, 2025
  18. PtJade-Ceramic commented on Mar 10, 2026

    @PtJade-Ceramic

    The following command works:

    Start-Process powershell.exe -ArgumentList "Update-Help" -Verb RunAs

    …but the following does not:

    Start-Process pwsh.exe -ArgumentList "Update-Help" -Verb RunAs
    PS> Start-Process powershell.exe -ArgumentList "Update-Help" -Verb RunAs -NoNewWindow
    Start-Process: Parameter set cannot be resolved using the specified named parameters. One or more parameters issued cannot be used together or an insufficient number of parameters were provided.

    …and nor does the parameter -Wait work.

  19. doctordns commented on Mar 10, 2026

    @doctordns
    Collaborator

    Can you reproduce this on Win 11? Windows 10 was EOL nearly 6 months ago.

  20. AnrDaemon commented on Mar 11, 2026

    @AnrDaemon

    Nice trick. Freeze the issue until it becomes EOL, then complain it is not reproducible.

  21. That-deaf-ITGuy commented on Mar 11, 2026

    @That-deaf-ITGuy

    Can you reproduce this on Win 11? Windows 10 was EOL nearly 6 months ago.

    I can confirm that this issue persists into Windows 11 on at least Windows PowerShell 5.1x. Here's a test on a Windows 11 Enterprise 24H2 system:

    Image Image

    Command used:

    Start-Process powershell.exe -ArgumentList '-nologo', '-noexit', `
    '-command', '"& { Get-Module -ListAvailable | Where-Object -Property HelpInfoUri | Update-Help -Force }"' `
    -Verb runas -WindowStyle Normal
  22. doctordns commented on Mar 11, 2026

    @doctordns
    Collaborator

    Thanks for the feedback. Frim what you say, there may be an issue with Windows PowerShell. This repository is for PowerShell 7.⁸

    You can report Windows PowerShell on the Windows Feedback hub.

    If you can reproduce with PowerShell, please post further.

  23. sdwheeler commented on Mar 11, 2026

    @sdwheeler
    Contributor

    The "multiple root elements" problem is a known issue with the way the MAML files are created by the new version of PlatyPS. We are working to resolve that issue.

  24. That-deaf-ITGuy commented on Mar 11, 2026

    @That-deaf-ITGuy

    Thanks for the feedback. Frim what you say, there may be an issue with Windows PowerShell. This repository is for PowerShell 7.⁸

    You can report Windows PowerShell on the Windows Feedback hub.

    If you can reproduce with PowerShell, please post further.

    Ah, my bad... I completely missed the fact that this was the PowerShell 7 repo 🤦🏽‍♂️

    Here's the same test running in PowerShell v7.5.4.0 on the same system as the previous test:

    Image

    Unfortunately, there was no "InnerException" details to pull up with respect to the SSL Connection could not be established, see inner exception... message 🫤 Or maybe I'm looking in the wrong place? This was on a corporate laptop that was connected to our VPN at runtime. The SSL Error may be a red herring.

    Command used (now with better formatting!):

    $PWSH_UpdateHelp_ArgsSplat = @(
        '-NoExit',
        '-Command',
        '"& { Get-Module -ListAvailable | Where-Object -Property HelpInfoUri | Update-Help -Force }"'
    )
    
    Start-Process pwsh.exe -ArgumentList $PWSH_UpdateHelp_ArgsSplat -Verb runas -WindowStyle Normal
  25. That-deaf-ITGuy commented on Mar 11, 2026

    @That-deaf-ITGuy

    In retrospect, I probably should have stored output of Start-Process into a variable via the -Passthru parameter. Maybe that would've captured more details.

  26. added
    Resolution-No Activity
    on Sep 8, 2026
  27. microsoft-github-policy-service commented on Sep 8, 2026

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if there is no further activity in 7 days, the issue will be closed automatically.

    Activity in this case refers only to comments on the issue. If the issue is closed and you are the author, you can re-open the issue using the button below. Please add more information to be considered during retriage. If you are not the author but the issue is impacting you after it has been closed, please submit a new issue with updated details and a link to this issue and the original.

  28. AnrDaemon commented on Sep 8, 2026

    @AnrDaemon

    The issue is still reproducible.

  29. removed
    Resolution-No Activity
    on Sep 8, 2026
  30. PtJade-Ceramic commented on Nov 10, 2026

    @PtJade-Ceramic
    Update-Help : 无法更新带有 UI 区域性 {en-US} 的模块“Microsoft.PowerShell.Host”帮助: 有多个根元素。 第 71 行,位置 26
    。
    所在位置 行:1 字符: 1
    + Update-Help
    + ~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [Update-Help],Exception
        + FullyQualifiedErrorId : UnknownErrorId,Microsoft.PowerShell.Commands.UpdateHelpCommand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Issue-BugWG-Interactive-HelpSystem

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions