Open ReeceGoding opened 1 week ago
Gave it a shot myself, but I've become confused by this line
$passedparams = $psboundparameters.Keys | Where-Object { 'Silent', 'SqlServer', 'SqlCredential', 'OutputAs', 'ServerInstance', 'SqlInstance', 'Database' -notcontains $_ }
Several of the parameters that are being filtered out aren't in Invoke-DbaWhoIsActive
at all. Some where in this quite old version, so maybe the filter list is just very old?
Summarize Functionality
Invoke-DbaWhoIsActive
callsInvoke-DbaQuery
, but cannot be called with the-AppendServerInstance
flag likeInvoke-DbaQuery
can. Let's fix that. When you callInvoke-DbaWhoIsActive
on a bunch of servers at once, it pays to know which server you're seeing.Is there a command that is similiar or close to what you are looking for?
Yes
Technical Details
This should be really easy, given that
Invoke-DbaWhoIsActive
callsInvoke-DbaQuery
directly and already has a bunch of things built in for controlling what parameters go there.