Skip to content

Get-DbaDbOrphanUser #9866

@WillemLankman

Description

@WillemLankman

When you run the command (Get-DbaDbOrphanUser) on an SQL instance with multiple contained databases, you get the result that the users are orphaned, but these are contained databases. Can you exclude this database by containedtype?
Example: $ncondb = Get-DbaDatabase -SqlInstance XXXXXXXX | Where-Object {$_.Containmenttype -eq 'partial'} |SELECT Name
Get-DbaDbOrphanUser -SqlInstance XXXXXXXX -ExcludeDatabase $ncondb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions