Skip to content

Get-DBaComputerSystem Pipeline sql result #7441

Answered by andreasjordan
JP-MB asked this question in Q&A
Discussion options

You must be logged in to vote

If your query returns just one column, use -As SingleValue:

Invoke-DbaQuery ..... -Query "select top 1 ComputerName..." -As SingleValue | Get-DbaComputerSystem

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@JP-MB
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by potatoqualitee
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants
Converted from issue

This discussion was converted from issue #7440 on June 15, 2021 21:59.