You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
help is a proxy function for Get-Help that is loaded into the initial session state when PowerShell starts. As a proxy function, it defines all the parameters that Get-Help has. The definition of the proxy function was created for Windows PowerShell but never adjusted for non-Windows.
The proxy function includes the -ShowWindow parameter for all platforms.
Expected behavior
PS /home/sdwheeler> help Get-Command -ShowWindowhelp: A parameter cannot be found that matches parameter name 'ShowWindow'.
Actual behavior
PS /home/sdwheeler> help Get-Command -ShowWindowGet-Help:Line | 64 | $help = Get-Help @PSBoundParameters | ~~~~~~~~~~~~~~~~~~ | A parameter cannot be found that matches parameter name 'ShowWindow'.
Error details
No response
Environment data
PS /home/sdwheeler>$PSVersionTable
Name Value
---------
PSVersion 7.3.5
PSEdition Core
GitCommitId 7.3.5
OS Linux 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023
Platform Unix
PSCompatibleVersions {1.0,2.0,3.0,4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
PS /home/sdwheeler> lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.6 LTS
Release: 20.04
Codename: focal
Prerequisites
Steps to reproduce
helpis a proxy function forGet-Helpthat is loaded into the initial session state when PowerShell starts. As a proxy function, it defines all the parameters thatGet-Helphas. The definition of the proxy function was created for Windows PowerShell but never adjusted for non-Windows.See source code -
PowerShell/src/System.Management.Automation/engine/InitialSessionState.cs
Lines 4185 to 4187 in 7363096
The proxy function includes the
-ShowWindowparameter for all platforms.Expected behavior
Actual behavior
Error details
No response
Environment data
Visuals
No response