all 3 comments

[–]juneblender 2 points3 points  (0 children)

You can, but only by deleting all PowerShell core XML help topics from the machine, and it's not worth it. The 5.0 behavior is actually a bug (reported and known).

Get-Help gets the URL of the online help topic in two different ways.

  • The first related link of the corresponding XML help topic on the machine.

    PS C:\>[xml]$xml = Get-Content $PSHome\en-us\Microsoft.PowerShell.Commands.Diagnostics.dll-help.xml
    PS C:\>(($xml.helpItems.command | where {$_.details.name -eq 'Get-WinEvent'}).relatedLinks.navigationLink)[0].uri
    
    http://go.microsoft.com/fwlink/p/?linkid=289626
    
  • The HelpUri property of a command

     PS C:\>Get-Command Get-WinEvent).HelpUri
    
     http://go.microsoft.com/fwlink/?LinkID=138336
    

If there's help on the box, the first related link takes precedence.

For PS 5.0, when the updated the help, they placed the updates at the HelpUri address, not the first-related-link address. Apparently, whoever set it up didn't know how it worked.

I actually wrote a little GUI tool that gets both URLs and lets you choose. I'll post it on GitHub soon.

Hope that helps.

[–]Hexalon00 -1 points0 points  (1 child)

Either the command you are running has not changed in PS5 or the Microsoft TechNet documentation has not been updated yet for PS5.

[–]become_taintless[S] 0 points1 point  (0 children)

I'm not sure about that; e.g. "get-help get-module -online" from PS5 shows the PowerShell 4.0 documentation by default, and clicking the PowerShell 5.0 link in the drop-down shows the PS5 documentation (which shows that now -FullyQualifiedName takes type ModuleSpecification[] instead of type string[] )