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

Orphaned file check results incorrect for one file #579

SQLDBAWithABeard opened this Issue Nov 29, 2018 · 1 comment


None yet
1 participant
Copy link

SQLDBAWithABeard commented Nov 29, 2018

Bug Report

General Troubleshooting steps

  • [X ] Verified running the latest release of dbachecks?

  • [ X] Verified errors are not related to permissions?

  • [X ] Can duplicate in new/clean PowerShell session (clean = powershell -NoProfile)?

Steps to Reproduce

Orphaned file check with one orphaned file returns $null instead of one in the results


This comment has been minimized.

Copy link

SQLDBAWithABeard commented Nov 29, 2018

@(Find-DbaOrphanedFile -SqlInstance $psitem).Count | Should -Be 0 -Because 'You dont want any orphaned files - Use Find-DbaOrphanedFile to locate them'

for line

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