Export-DbaLogin
#7104
Replies: 1 comment 1 reply
-
Logins contain the mapping to all user databases, just as you look at the properties of a login object in SSMS. The use of You can look at the export commands we have in the module for other options: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I was testing usage of dbatools to export logins from one server to another.
The Copy-DbaLogin with Force parameter works great directly between two servers, but I would like to do it not directly.
Is it possible to export Logins with the something like -Force parameter and without User part from local database (I need only the operations for master database and not for MyDatabase, because these data I have in the backup).
In summary: I will need to export Logins to the file to perform something like "recovery" of logins from the file.
Some of the logins will exist and need to replace it like force option in the Copy-DbaLogin (drop login and create it from file).
I also plan to do recovery of my database in the same time, so the user part is not necessary.
Is it possible to do with some parameters or using few of commands from dbatools?
Thank you in advance
Adam
Beta Was this translation helpful? Give feedback.
All reactions