Closed alevyinroc closed 5 years ago
powershell -NoProfile
Produced on dbatools 0.9.519
0.9.519
get-dbalogin -ServerInstance $prod | where-object {-not $_.isDisabled} | select-object -first 1 | ForEach-Object {Export-DbaLogin -login $_ -path (join-path -path e:\tmp\2016upgrade\Logins -childpath "$($_.name.replace('\','$')).sql") -SqlInstance $prod -verbose}
File output listing login details, database permissions, roles, etc. for the first enabled user on the instance to a file named using the login name
Resulting file contains only GO
GO
This issue has been automatically marked as stale because it has not had recent activity. If you would like this issue to remain open:
Before submitting a bug report:
powershell -NoProfile
)Steps to Reproduce
Produced on dbatools
0.9.519
Expected Behavior
File output listing login details, database permissions, roles, etc. for the first enabled user on the instance to a file named using the login name
Actual Behavior
Resulting file contains only
GO
Environmental data