Skip to content

Connect-DbaInstance - changing format of $SqlCredential.UserName #7525

@andreasjordan

Description

@andreasjordan

While working on #7490 (comment) I wondered why we change "DOMAIN\user" to "user@DOMAIN".

I just copied that from the old code path to the new code path. The old path says:
https://github.com/sqlcollaborative/dbatools/blob/b52e18d5f25d932b1d785589a6ffa0b4fd402541/functions/Connect-DbaInstance.ps1#L1391-L1418

Because in my tests, it works even if we use "DOMAIN\user".

Does anybody know?

Metadata

Metadata

Assignees

No one assigned

    Labels

    pending team feedbackWaiting for feedback from other maintainers/contributors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions