New-DbaDbUser
- Multiple -SqlInstance
Without -Database
Doesn't Add User To All Dbs
#9340
Labels
New-DbaDbUser
- Multiple -SqlInstance
Without -Database
Doesn't Add User To All Dbs
#9340
Verified issue does not already exist?
I have searched and found no existing issue
What error did you receive?
No error message. Login/User isn't added on all non-system databases.
Steps to Reproduce
Please confirm that you are running the most recent version of dbatools
Pulled from recent
development
.Other details or mentions
Some how
$getdbparam
retains multiple databases in theDatabase
key after the first full iteration of the$instance
loop. I'm not entirely sure how this happens. Maybe something with the handling of the cloning.I was playing with the below breakpoint.
What PowerShell host was used when producing this error
PowerShell Core (pwsh.exe)
PowerShell Host Version
SQL Server Edition and Build number
.NET Framework Version
The text was updated successfully, but these errors were encountered: