Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exporting login produces empty file #4604

Closed
3 of 4 tasks
alevyinroc opened this issue Nov 20, 2018 · 1 comment · Fixed by #5194
Closed
3 of 4 tasks

Exporting login produces empty file #4604

alevyinroc opened this issue Nov 20, 2018 · 1 comment · Fixed by #5194
Assignees

Comments

@alevyinroc
Copy link
Contributor

alevyinroc commented Nov 20, 2018

Before submitting a bug report:

  • Ensure you are able to reproduce it on the latest released version (we release often)
  • Verified this bug is not already reported in an issue
  • Verified errors are not related to permissions
  • Can reproduce in a clean PowerShell session (clean = powershell -NoProfile)

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

  • PowerShell: 5.1.17134.407
    • SQL Server: Microsoft SQL Server 2008 R2 (SP3) - 10.50.6220.0 (X64) & Microsoft SQL Server 2016 (SP2-CU2-GDR) (KB4293807) - 13.0.5161.0 (X64)
@stale
Copy link

stale bot commented Jan 19, 2019

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

  • Verify that you can still reproduce the issue in the latest version of dbatools
  • Comment that the issue is still reproducible and include:
    • What version of dbatools you reproduced the issue on
    • What OS and version you reproduced the issue on
    • What steps you followed to reproduce the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants