You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the page https://docs.dbatools.io/Export-DbaLogin there are examples of how to use the command. Using the first example, it has this command:
Export-DbaLogin -SqlInstance sql2005 -Path C:\temp\sql2005-logins.sql
Based on the description of the example, I would expect it to create that exact file.
However, it actually creates a folder which matches the given filename, including the file type, and then it creates a .sql file within that folder.
For example, I ran this command:
Export-DbaLogin -SqlInstance {server-name} -Path C:\temp\Migration\{servername}-Logins.txt
Which produced a folder in C:\temp\Migration\ called {servername}-Logins.txt, and then a .sql file inside that folder called {servername}-Logins.sql.
It looks like the description needs to be updated, or the behaviour is unintended.
I assume that this will likely affect other examples as well, but I haven't tested them.
The text was updated successfully, but these errors were encountered:
On the page https://docs.dbatools.io/Export-DbaLogin there are examples of how to use the command. Using the first example, it has this command:
Export-DbaLogin -SqlInstance sql2005 -Path C:\temp\sql2005-logins.sql
Based on the description of the example, I would expect it to create that exact file.
However, it actually creates a folder which matches the given filename, including the file type, and then it creates a .sql file within that folder.
For example, I ran this command:
Export-DbaLogin -SqlInstance {server-name} -Path C:\temp\Migration\{servername}-Logins.txt
Which produced a folder in C:\temp\Migration\ called {servername}-Logins.txt, and then a .sql file inside that folder called {servername}-Logins.sql.
It looks like the description needs to be updated, or the behaviour is unintended.
I assume that this will likely affect other examples as well, but I haven't tested them.
The text was updated successfully, but these errors were encountered: