-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cmdlet help not found #107
Comments
cc: @sdwheeler |
@ThomasNieto I updated our redirection links. Let me know if that helped. |
@sdwheeler Sadly it did not, PS C:\Users\Thomas> update-Help psdesiredstateconfiguration -Verbose -Force
VERBOSE: Resolving URI: "https://aka.ms/powershell70-help"
VERBOSE: Your connection has been redirected to the following URI: "https://pshelpprod.blob.core.windows.net/cabinets/powershell-7/"
VERBOSE: Performing the operation "Update-Help" on target "PSDesiredStateConfiguration, Current Version: 7.0.1.0, Available Version: 7.0.1.0, UICulture: en-US".
VERBOSE: PSDesiredStateConfiguration: Updated C:\Users\Thomas\Documents\PowerShell\Help\PSDesiredStateConfiguration\2.0.6\en-US\about_Classes_and_DSC.help.txt. Culture en-US Version 7.0.1.0
VERBOSE: PSDesiredStateConfiguration: Updated C:\Users\Thomas\Documents\PowerShell\Help\PSDesiredStateConfiguration\2.0.6\en-US\Microsoft.Windows.DSC.CoreConfProviders.dll-help.xml. Culture en-US Version 7.0.1.0
VERBOSE: PSDesiredStateConfiguration: Updated C:\Users\Thomas\Documents\PowerShell\Help\PSDesiredStateConfiguration\2.0.6\en-US\PSDesiredStateConfiguration-help.xml. Culture en-US Version 7.0.1.0
PS C:\Users\Thomas> Get-DscResource -?
NAME
Get-DscResource
SYNTAX
Get-DscResource [[-Name] <string[]>] [[-Module] <Object>] [-Syntax] [<CommonParameters>]
ALIASES
None
REMARKS
Get-Help cannot find the Help files for this cmdlet on this computer. It is displaying only partial help.
-- To download and install Help files for the module that includes this cmdlet, use Update-Help.
-- To view the Help topic for this cmdlet online, type: "Get-Help Get-DscResource -Online" or
go to http://go.microsoft.com/fwlink/?LinkId=403985.
PS C:\Users\Thomas> Get-Command Get-DscResource
CommandType Name Version Source
----------- ---- ------- ------
Function Get-DscResource 2.0.6 PSDesiredStateConfiguration
PS C:\Users\Thomas> ls C:\Users\Thomas\Documents\PowerShell\Help\PSDesiredStateConfiguration\2.0.6\en-US
Directory: C:\Users\Thomas\Documents\PowerShell\Help\PSDesiredStateConfiguration\2.0.6\en-US
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 12/13/2021 10:12 PM 24117 about_Classes_and_DSC.help.txt
-a--- 12/13/2021 10:12 PM 10540 Microsoft.Windows.DSC.CoreConfProviders.dll-help.xml
-a--- 12/13/2021 10:12 PM 20293 PSDesiredStateConfiguration-help.xml |
Aha, I understand the problem. You have a previous version of the help downloaded that is pointing to the old storage location. We moved DSC the content to a new location when it was migrated out of the PowerShell-Docs repo. If you delete the existing help files from |
Strange still didn't work, I deleted both the module and help for a clean slate. PS C:\Users\Thomas> Install-PSResource psDesiredStateConfiguration -PassThru
Name Version Prerelease Repository Description
---- ------- ---------- ---------- -----------
PSDesiredStateConfiguration 2.0.6 PSGallery PowerShell Desired State Configuration
PS C:\Users\Thomas> Update-Help psdesiredstateconfiguration -Verbose -Force
VERBOSE: Resolving URI: "https://aka.ms/powershell72-help"
VERBOSE: Your connection has been redirected to the following URI: "https://pshelpprod.blob.core.windows.net/cabinets/powershell-7.2/"
VERBOSE: Performing the operation "Update-Help" on target "PSDesiredStateConfiguration, Current Version: 0.0.0.0, Available Version: 7.2.0.0, UICulture: en-US".
VERBOSE: PSDesiredStateConfiguration: Updated C:\Users\Thomas\Documents\PowerShell\Help\PSDesiredStateConfiguration\2.0.6\en-US\about_Classes_and_DSC.help.txt. Culture en-US Version 7.2.0.0
VERBOSE: PSDesiredStateConfiguration: Updated C:\Users\Thomas\Documents\PowerShell\Help\PSDesiredStateConfiguration\2.0.6\en-US\PSDesiredStateConfiguration-help.xml. Culture en-US Version 7.2.0.0
PS C:\Users\Thomas> Get-DscResource -?
NAME
Get-DscResource
SYNTAX
Get-DscResource [[-Name] <string[]>] [[-Module] <Object>] [-Syntax] [<CommonParameters>]
ALIASES
None
REMARKS
Get-Help cannot find the Help files for this cmdlet on this computer. It is displaying only partial help.
-- To download and install Help files for the module that includes this cmdlet, use Update-Help.
-- To view the Help topic for this cmdlet online, type: "Get-Help Get-DscResource -Online" or
go to http://go.microsoft.com/fwlink/?LinkId=403985.
PS C:\Users\Thomas> ls C:\Users\Thomas\Documents\PowerShell\Help\PSDesiredStateConfiguration\2.0.6\en-US
Directory: C:\Users\Thomas\Documents\PowerShell\Help\PSDesiredStateConfiguration\2.0.6\en-US
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 6/22/2021 10:16 PM 24117 about_Classes_and_DSC.help.txt
-a--- 6/22/2021 10:16 PM 31227 PSDesiredStateConfiguration-help.xml |
Also, delete the |
I found 2 more redirects that needed fixing. Deleting and reinstalling the module should fix |
The help info file was deleted along with the en-us directory and forcing the help to update still didn't resolve. Thanks for taking a look at it over the weekend. |
Found a workaround, if you copy the en-US folder from the help directory into the module directory it will work. That makes it seem like a |
Ah... I think we have run into that before. There may be an issue open in the PowerShell repo. If not, we need to open one. |
@ThomasNieto I found the related bug - See PowerShell/PowerShell#18397 You should find it familiar. 😉 |
Prerequisites
Steps to reproduce
Install PSDesiredStateConfiguration module and update help. Then try to access any of cmdlet help and it will say no help found.
Expected behavior
# Help found
Actual behavior
# Help not found
Error details
No response
Environment data
Version
2.0.6
Visuals
No response
The text was updated successfully, but these errors were encountered: