PowerTip: Use Show-Command to See PowerShell Parameters

PowerTip: Use Show-Command to See PowerShell Parameters

  • Comments 6
  • Likes

Summary: Use Show-Command to display interactive Windows PowerShell parameter Help.

Hey, Scripting Guy! Question How do you display the parameters and parameter sets of Windows PowerShell cmdlets in an interactive fashion?

Hey, Scripting Guy! Answer Use the Show-Command cmdlet from the Windows PowerShell console or the Windows PowerShell ISE:

            Show-Command –name cmdletname

For example:

Show-Command get-process

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • This is the error message I got:

    "The term 'Show-Command' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path w

    as included, verify that the path is correct and try again."

  • hi


    show-command it's in version 3 and it work only in ISE

  • @all Show command does work in the console as well as the ISE, but as Walid mentioned, it only works in PowerShell V3

  • @Earl Show-Command is included in PowerShell 3.0. You can get PowerShell 3.0 from here: www.microsoft.com/.../details.aspx

    @Walid Toumi, @Boe Prox yes Show-Command works both in the PowerShell 3.0 console as well as with the ISE. In fact, show-Command appears two different ways in the ISE -- one is the Command Add-On, and the other is calling Show-Command directly.

  • Perhaps, the PowerTips should indicate which version or known version of PowerShell the tips work for.

  • It's not working in ISE version 4. Any ideas why that is?