dbatools icon indicating copy to clipboard operation
dbatools copied to clipboard

Get-DbaRegServer IncludeSelf

Open tboggiano opened this issue 3 years ago • 1 comments

Summarize Functionality

Can we get the parameter to return the resutls back with the rest of the results so that we can pass it with piping to commands?

For example:

$SQLInstances = Get-DbaRegServer -SQLInstance $CMSServer -IncludeSelf $SQLInstances | Get-DbaDefaultPath | Format-Table -AutoSize

The last command will not return results for the CMSServer.

Is there a command that is similiar or close to what you are looking for?

No

Technical Details

No response

tboggiano avatar Jun 01 '22 18:06 tboggiano

I ended up adding Self like CMSServer,1433. I agree, it would be nice if the results were consistent.

mattcargile avatar Jul 12 '22 15:07 mattcargile