Update-help fails to update two modules

I stumbled upon the Failed to update Help for the module(s)~ TechNet post after trying this and getting the exact same result as you.

After running with the syntax below once I read over that post before I elevated the PowerShell prompt, this gave me the needed detail of what the issue was and how to resolve.

Two Part Solution

  1. Run PowerShell elevated as administrator
  2. Run this PowerShell command syntax:

    Update-Help  -Force -Ea 0 -Ev what
    $what.Exception
    

    source


The Error (using -ErrorAction [-Ea] and -ErrorVariable [-Ev])

  • Failed to update Help for the module(s) : '<List of Modules>~' Access is denied. The command could not update Help topics for the Windows PowerShell core modules, or for any modules in the $pshome\Modules directory. To update these Help topics, start Windows PowerShell by using the "Run as Administrator" command, and try running Update-Help again. Failed to update Help for the module(s) ~


Further Resources

  • Update-Help
  • Common Parameters

    • ErrorAction

      • The -ErrorAction common parameter allows you to specify which action to take if a command fails. The available options are: Stop, Continue, SilentlyContinue, Ignore, or Inquire. If you’re developing a Windows PowerShell workflow, you can also use the Suspend value. However, advanced functions cannot be suspended.

        When you specify the ErrorAction parameter during a call to a command, the specified behavior will override the $ErrorActionPreference variable in Windows PowerShell. This variable is part of a handful of variables known as “preference variables.” By default, Windows PowerShell uses an error action preference of Continue, which means that errors will be written out to the host, but the script will continue to execute.

        source

    • ErrorVariable

      • Normally, if you run a Windows PowerShell command and an error occurs, the error record will be appended to the “automatic variable” named $error. When you use the -ErrorVariable parameter in a call to a command, the error is assigned to the variable name that you specify. It’s important to note that even when you use the -ErrorVariable parameter, the $error variable is still updated.

        source


This is not unusual. It has happen to me many times. Since the first release of PowerShell/Monad.

So, don't stress over this, because you normally can't fix it (many times only the author can), and use the online web help version for the module that have issues, if there is any of course.

Not all modules have updatable help, or there are issues with the associated manifest, help links files.

So, as noted by the PimpJuiceIT, just use that command to ignore the error.