r/PowerShell • • Mar 02 '20

Question Multiple Years of Microsoft's Broken PowerShell Module HelpInfoURIs and Update-Help

Have you tried using Update-Help on Windows PowerShell over the past few years? If you haven't in a while, go and do it now. I can tell you exactly what happens if you do: you get errors.

It doesn't matter if you have custom modules installed. The errors show up on fresh installs of Windows.

You may have even ended up getting annoyed, and no longer use Update-Help without running it like this:

Update-Help -Verbose -Force -ErrorAction SilentlyContinue

You're not alone. This is a problem across every Windows system because Microsoft has had broken documentation links in their standard, included-with-OS PowerShell modules for years. There are multiple conversations in places like StackOverflow, Microsoft forums, and elsewhere that are all by people first running into this problem.

The details as to why this happens, and paths that Microsoft can do to fix the problems, are detailed here:

Update-Help fails for WindowsUpdateProvider

The GitHub issue has been open for over two years, and the problems continue to persist.

My question: where else can this information be passed on to the right folks at Microsoft? This GitHub issue above likely doesn't translate into any kind of internal Microsoft task for the appropriate module owners. The broken modules are not open-sourced modules, but are included with the Windows OS, so I'm not sure the best way to go about it. There are more detailed lists of questions, based on the problem details, in the above linked issue.

Otherwise, too: definitely contribute to the issue's conversation, give more reaction/thumbs-up emojis to the OP of the issue and to any other helpful comments within the issue conversation.

116 Upvotes

26 comments sorted by

31

u/EIGRP_OH Mar 02 '20

So I’ve wondered for awhile now why Get-Help was always suggested as a first line of defense. Every time I’ve done it, either there was no help because the help needed to be updated or I just got errors so I always found it better to just google the cmdlet.

This now makes sense.

9

u/JereTR Mar 03 '20

One of the things I remember while researching and learning, was that they don't include all the documents on help in a fresh install of windows.

I "think" it was because it helped make the install size smaller, and most people could access internet. This was back with the rollout of version 3.

Either way, each fresh install I update-help at least once to have a basic set of documentation.

4

u/icantevenplop Mar 03 '20

This is true. This was a good design decision, too, because:

  • Servers don't need the help documentation by default (unless...an admin really wanted it to?)

    • You can also do interesting things like Save-Help to make stuff available internally

  • Client systems don't need the help documentation by default, either, unless they are going to use PowerShell

  • Help documentation updates over time, even when the code itself does not, and it makes sense to keep them separate. Previous to PowerShell v3, Microsoft would have had to update the modules themselves in the event that help documentation ever updated. That would have meant something as bad as a Windows Update needing to be done.

I still think Get-Help should be the first line of defense, from the perspective of PowerShell users, learning/understanding PowerShell, and that creators of PowerShell functions and modules should have detailed help documentation. At a minimum, at least comment-based help so that help documentation travels wherever the function ends up going if people add it to other modules.

Annoyingly, you'll just need to always run the following for the latest documentation so that errors are hidden from your eyes:

Update-Help -Verbose -Force -ErrorAction SilentlyContinue

2

u/billr1965 Mar 03 '20

As the OP stated Microsoft seems not to update their help so your statement "Help documentation updates over time" seems to be invalid. There are many government and defense customers that deploy PowerShell to servers that are NOT and can NOT be connected to the Internet. Include the damned help with the install. A few MB of help will not dramatically grow an otherwise large install.

2

u/overlydelicioustea Mar 03 '20
get-help <cmdlet> -online

1

u/BlitzThunderWolf Mar 03 '20

Update-help needs to be run as an admin

5

u/Wxfisch Mar 02 '20

I don’t have a great solution for you other than a) see if there is a user voice for this and create one if there is not (although the track history there is not great) and b) you can try adding and label to the github issue or tagging other MS docs maintainers to see if you can get some traction going on it. Usually issues like this are not Docs issues so that github issue is not really the right place for the complaint. However power shell does point online help to docs so you may be able to firce some traction there. Perhaps open an issue/add a comment to the docs page where the cmdlets missing help should be?

4

u/icantevenplop Mar 03 '20 edited Mar 03 '20

Yeah, it doesn't feel like the right place there on GitHub in that issue.

I see there are multiple modules over time having problems:

I wonder if I should check if there is one available for each module currently getting errors? I do see some have been fixed over time there. May be the best thing to do since they will change over time. I can link to the GitHub issue.

I wonder if they could expand their CI tooling for PowerShell modules to test the HelpInfoURI so that they would close the feedback loop immediately?

I'll also take a look at the docs pages. It looks like they've made it easy to open issues about particular pages, so I'll be doing that :)

Side note: what's funny, is that searching "windowsupdateprovider powershell" in Google, nearly the entire first page for me are people having this error and posting about it on multiple sites.

3

u/MyBrainReallyHurts Mar 03 '20

I just listened to the Powerscripting podcast over the weekend. The guest said to create an issue. You may also want to try the Slack channel.

https://powershell.org/2020/01/episode-329-powerscripting-podcast-jason-helmick-from-microsoft/

3

u/helixamir Mar 03 '20

VSCode intellisense is more than a fine replacement for get-help.

1

u/BasementMillennial Mar 03 '20

Microsoft itself is moving too fast trying to compete with Amazon and leaving their products and documentation as an absolute mess lately

-1

u/poshftw Mar 03 '20

My question: where else can this information be passed on to the right folks at Microsoft?

Bitch at your MS representative, open tickets with Premier Support, throw some hate tweets at Nadella, make shitposts up to the frontpage, make ArsTechnica and CNET give the coverage on the issue, repost it to Slashdot...

Anything other, like User Voice and GitHub issues, will be ignored, because... it COULD be ignored.

1

u/nostril_spiders Mar 03 '20

Windows Powershell is sunsetted. Surely you know this. Rage all you want; all you'll achieve is to pump a little bit more anger into the world.

0

u/poshftw Mar 04 '20

Do you have anything meaningful to say?

1

u/nostril_spiders Mar 04 '20

Sorry if I was unclear.

I'm not telling you what to do, but I'd like to gently suggest that you (plural - poshftw and OP) do not carry out these rage-tweet-the-ceo actions for an obsolete product.

There is no possible advantage to you because no further development is going to happen. The product is past end-of-life.

The cost of the action is that you are being rude. You might see that as an advantage, of course.

1

u/poshftw Mar 04 '20

Well, if you add a little /s in my first comment you would understand my stance in it a little better.

0

u/odwulf Mar 03 '20

Broken links at MS? No way! Broken PERMAlinks in MS products? Has anyone seen that before?</S>

I never understood why MS bothered with their permalink system: what use is a permalink if you don't update the DB when you move all your pages around twice a year?

0

u/[deleted] Mar 02 '20

[deleted]

2

u/icantevenplop Mar 03 '20

I think it's a good system, and that it should still be the first place people look for help. Many of the modules available (at least after running an initial Update-Help -Verbose -Force -ErrorAction SilentlyContinue successfully at least once) have decent documentation.

It's been nice seeing when modules on the PowerShell Gallery have done their due diligence and provide great help documentation. When people share their PowerShell functions online and they include comment-based help, that is always really cool to see, too.

BUT I 100% agree with when there are no examples, or when it's a cmdlet/function that has little to no documentation. Especially if it is an official Microsoft module. Though, I don't use Windows PowerShell often enough to have modules come to mind that are lacking. My experience has usually been pretty good.

8

u/[deleted] Mar 03 '20

Idk man. I think that’s a tab bit unfair. Admittedly, I’m no expert or anything, but I use the help features a ton to prevent myself from doing a billion google searches. I’m sure when you get to advance topics there will be less helpful information, or maybe none at all. But I wouldn’t call it amateur.

6

u/Ta11ow Mar 03 '20

The PowerShell cmdlets have great help.

The _Windows_ cmdlets are decidedly quite awful in terms of help. I can't even call it amateur; those teams know their product, they just completely neglected to take the proper steps to provide usable documentation for the tools they built.

They also, by and large, completely neglected to maintain or develop their modules after a while, and there are still a lot of bugs and poorly-written commands throughout many of the Windows modules.

1

u/[deleted] Mar 04 '20

Look, when you look it up, the sections are blank. Having no documented examples is a complete unprofessional experience, so yes I will call it amateur because that's what it is.

It's harsh, but that's literally the state of affairs dude. Just today I literally got in contact with Microsoft to update their incomplete documentation on the new Exchange Online PowerShell Module v2 because it was missing entire sections on switches in the connection function.

2

u/Emiroda Mar 03 '20

Cmdlets in the Microsoft.PowerShell.* modules have fine documentation.

It's the other fucking MS product groups that can't create documentation for their cmdlets. SCCM is one of the worst sinners in my opinion, creating some amazing cmdlets with no instructions on how to use them. They expect input of a certain object type, but gives no clue what cmdlets output such type.

Even worse, some product groups expect you to read the SDK! To run some tiny command!

AD, SCCM, DNS, Windows, RDS, you name the Microsoft product group and they probably made cmdlets with no documentation. But name any cmdlet developed by the PowerShell team, and it probably has pages upon pages of documentation, 5+ examples, maybe even an about_ page.

1

u/nostril_spiders Mar 03 '20

I can't agree with your comment at all.

I'm guessing you've never tried the parameters of Get-Help. Just use -Full and see what you think after that.

You need to spend some time wrestling with Linux manpages, then you'll know which side your bread is buttered.

2

u/[deleted] Mar 03 '20 edited Mar 03 '20

[removed] — view removed comment

3

u/icantevenplop Mar 03 '20

This problem is with Windows PowerShell, specifically the one that comes along with Microsoft Windows that isn't open sourced. PowerShell Core, the open version, is a separate project and doesn't come packaged with the Windows-OS-specific modules that have the issues seen above. This makes it difficult since these PowerShell modules aren't open sourced somewhere to open issues with.

Doing tests with PowerShell Core, at least with v6.2.4 and current base-modules, Update-Help doesn't seem to have problems.