Powershell: Help command in PS 6.2.1 has a non-functional -ShowWindow parameter

Created on 31 May 2019  路  6Comments  路  Source: PowerShell/PowerShell

Steps to reproduce

help Compress-Archive -ShowWindow
#works with any command, not just Compress-Archive

Expected behavior

help Compress-Archive -ShowWindow
#expect a new window to pop up displaying the help for the cmdlet.
#Since this is really a Windows platform thing, then it would be ok if this parameter simply was not there

Actual behavior

PS C:\Program Files\PowerShell\6> help Compress-Archive -ShowWindow
Get-Help : A parameter cannot be found that matches parameter name 'ShowWindow'.
At line:64 char:22
+     $help = Get-Help @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : InvalidArgument: (:) [Get-Help], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.GetHelpCommand

Environment data

Name                           Value
----                           -----
PSVersion                      6.2.1
PSEdition                      Core
GitCommitId                    6.2.1
OS                             Microsoft Windows 10.0.17134
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0鈥
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
Issue-Question Resolution-Fixed

Most helpful comment

Since WPF only works on Windows, bringing this back means we should have a cross platform solution. Perhaps render as HTML and present in browser might be viable.

All 6 comments

Is this present on the full Get-Help cmdlet as well, or only on the help short function? I remember you said that the parameter was coming up from tab completion despite the engine saying it's not there, so I wonder if it's just been left behind on the help function.

You are correct.. it is generating from help but not from get-help.
So.. should this issue be moved back to the main thread to update the help command?

Not sure, actually. Is this mentioned in that thread?

/cc @SteveL-MSFT I know you've been poking at Out-GridView already a bit, is this one on your radar?

This parameter is removed in PowerShell 7 (preview 1).

But if @Stevel-MSFT does have returning the parameter and getting it to work (even if Windows only for now) - that would be nice!

Since WPF only works on Windows, bringing this back means we should have a cross platform solution. Perhaps render as HTML and present in browser might be viable.

:tada:This issue was addressed in #10899, which has now been successfully released as v7.0.0-preview.6.:tada:

Handy links:

Was this page helpful?
0 / 5 - 0 ratings