Piping Get-DbaBuildReference throws warning with no output #4794
Closed
Description
Before submitting a bug report:
- Ensure you are able to reproduce it on the latest released version (we release often)
- Verified this bug is not already reported in an issue
- Verified errors are not related to permissions
- Can reproduce in a clean PowerShell session (clean =
powershell -NoProfile
)
Steps to Reproduce
Get-DbaCmsRegServer MyRegServer -Group "Servers\ByVersion" | Get-DbaBuildReference
gives
WARNING: [Get-DbaBuildReference] You need to choose at least one parameter.
I can run this command on another server that has got dbatools version 0.9.450
Get-DbaCmsRegServer MyRegServer -Group "Servers\ByVersion" | Get-DbaBuildReference
Expected Behavior
List of servers with build details
Actual Behavior
throws warning : [Get-DbaBuildReference] You need to choose at least one parameter.
Environmental data
- PowerShell:
Name Value
PSVersion 5.1.17134.407
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17134.407
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
- SQL Server:
Microsoft SQL Server 2014 (SP3) (KB4022619) - 12.0.6024.0 (X64) Sep 7 2018 01:37:51 Copyright (c) Microsoft Corporation Enterprise Edition: Core-based Licensing (64-bit) on Windows NT 6.3 (Build 9600: ) (Hypervisor)