PowerShell icon indicating copy to clipboard operation
PowerShell copied to clipboard

Provider help topics are missing

Open mklement0 opened this issue 7 years ago • 3 comments

Steps to reproduce

  • First, run Update-Help from an elevated / sudo prompt to ensure that the latest topics have been downloaded.
# This works in WinPS.
Get-Help -Category provider Environment

Expected behavior

The Environment PS provider's help topic should print.

Actual behavior

An error about a missing file is reported.

Get-Help : System.Management.Automation.dll-Help.xml
At line:1 char:1
+ Get-Help -Category Provider Environment
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : OpenError: (:) [Get-Help], FileNotFoundException
+ FullyQualifiedErrorId : LoadHelpFileForTargetFailed,Microsoft.PowerShell.Commands.GetHelpCommand

Environment data

PowerShell Core v6.1.0 on macOS 10.14
PowerShell Core v6.1.0 on Ubuntu 16.04.5 LTS
PowerShell Core v6.1.0 on Microsoft Windows 10 Pro (64-bit; Version 1803, OS Build: 17134.165)

mklement0 avatar Oct 15 '18 14:10 mklement0

I can't find any Provider help in v7.2.2 on Win10 21H2 x64 either, though I can see the docs online. eg Both of the following do not return the expected docs

Get-Help -Category Provider
Get-Help -Name *filesystem*

Both the above work in Windows PowerShell 5.1.

cantoris avatar Apr 18 '22 15:04 cantoris

This is due to the PowerShell team migrating the docs from the help xml to about topics. I don't agree with the change but its still there technically but breaks the -Category parameter search.

Get-Help about*provider*

Name                              Category  Module                    Synopsis
----                              --------  ------                    --------
about_Alias_Provider              HelpFile
about_Certificate_Provider        HelpFile
about_Environment_Provider        HelpFile
about_FileSystem_Provider         HelpFile
about_Function_Provider           HelpFile
about_Providers                   HelpFile
about_Registry_Provider           HelpFile
about_Variable_Provider           HelpFile
about_WSMan_Provider              HelpFile

ThomasNieto avatar Oct 26 '22 23:10 ThomasNieto

This is due to the PowerShell team migrating the docs from the help xml to about topics.

Get-Help about*provider*

Name                              Category  Module                    Synopsis
----                              --------  ------                    --------
about_Alias_Provider              HelpFile

Even after "Get-Module -ListAvailable | Update-Help -Force", your command above still gives me no results in PS 7.2.6?!

cantoris avatar Nov 01 '22 22:11 cantoris

Thank you @mklement0 -- as mentioned this was due to a migration to about topics. Get-Help -Name about*provider should provide the expected results.

theJasonHelmick avatar Jan 11 '23 21:01 theJasonHelmick

This issue has been marked as by-design and has not had any activity for 1 day. It has been closed for housekeeping purposes.

ghost avatar Jan 13 '23 09:01 ghost