Skip to content

Instantly share code, notes, and snippets.

@JohnLBevan
Created October 26, 2017 11:47
Show Gist options
  • Select an option

  • Save JohnLBevan/f7203707cb0e822fa5feb9f6252bab10 to your computer and use it in GitHub Desktop.

Select an option

Save JohnLBevan/f7203707cb0e822fa5feb9f6252bab10 to your computer and use it in GitHub Desktop.
Quick way to find which elements take input via the pipeline (it's not as simple as one would expect of PS)
#value from pipeline
Get-Help 'Get-Process' -Parameter * | ? PipeLineInput -like '*ByValue*'
#value from pipeline by property name
Get-Help 'Get-Process' -Parameter * | ? PipeLineInput -like '*ByPropertyName*'
#see the PSObjects returned by help, instead of the blasphemous "nicely formatted" output
Get-Help 'Get-Process' -Parameter * | select *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment