Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-DbaServerRoleMember only honors -Login parameter on 1st instance of the list #8495

Closed
ClaudioESSilva opened this issue Aug 18, 2022 · 0 comments · Fixed by #8496
Closed
Assignees
Labels
bugs life confirmed Label to be used by maintainers that confirm a bug does exist for the given issue

Comments

@ClaudioESSilva
Copy link
Collaborator

ClaudioESSilva commented Aug 18, 2022

Verified issue does not already exist?

I have searched and found no existing issue

What error did you receive?

No error.

When calling the command with more than one instance and the -Login parameter, it only returns results for the 1st instance.
With -Verbose we can see that on the 2nd iteration the filter was gone.
image

Steps to Reproduce

Get-DbaServerRoleMember -SqlInstance "localhost:14333", "localhost:14334" -Login "sqladmin"

Please confirm that you are running the most recent version of dbatools

1.1.125

Other details or mentions

I have a fix for it and will submit a PR.

What PowerShell host was used when producing this error

PowerShell Core (pwsh.exe)

PowerShell Host Version

PSVersion 7.2.5
PSEdition Core
GitCommitId 7.2.5
OS Microsoft Windows 10.0.22000
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

SQL Server Edition and Build number

Microsoft SQL Server 2019 (RTM-CU15) (KB5008996) 15.0.4198.2 (X64)

.NET Framework Version

.NET 6.0.6

@ClaudioESSilva ClaudioESSilva added bugs life confirmed Label to be used by maintainers that confirm a bug does exist for the given issue labels Aug 18, 2022
@ClaudioESSilva ClaudioESSilva self-assigned this Aug 18, 2022
ClaudioESSilva added a commit that referenced this issue Aug 18, 2022
ClaudioESSilva added a commit that referenced this issue Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugs life confirmed Label to be used by maintainers that confirm a bug does exist for the given issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant