Created
October 26, 2017 11:47
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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