Skip to content

Can Export-DbaLogin export all accounts to seprate txt files? #8422

Answered by potatoqualitee
JoyWorksToo asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, but it would require a smidge of coding, something like

foreach ($login in (Get-DbaLogin -SqlInstance sql01)) {
    Export-DbaLogin -SqlInstance $login.Parent -Login $login.Name ....
}

This command does not properly support piping right now, sorry :/

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JoyWorksToo
Comment options

Answer selected by JoyWorksToo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants