Skip to content
Discussion options

You must be logged in to vote

If you want to get value from output of PSCustomObject then convert it to strings

([pscustomobject] @{ abc = 'a'; bcd = 'b' } | Out-String) -split "\n" | sls 'a(?=\s)'

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@bakamake
Comment options

Answer selected by bakamake
Comment options

You must be logged in to vote
1 reply
@vladlen-codes
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants