dataplat / dbatools

🚀 SQL Server automation and instance migrations have never been safer, faster or freer
https://dbatools.io
MIT License
2.43k stars 794 forks source link

Exporting login produces empty file #4604

Closed alevyinroc closed 5 years ago

alevyinroc commented 5 years ago

Before submitting a bug report:

Steps to Reproduce

Produced on dbatools 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}

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

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. If you would like this issue to remain open: