PowerShell
PowerShell copied to clipboard
Copy-SQLLogins output file for named instance
I changed line 28 in
PowerShell/SQLUtility/SQLUtility/Copy-SQLLogins.psm1
from
$filename = $source.Replace('/','_') + '_' + (Get-Date -Format 'yyyyMMddHHmm') + '_logins.sql'
to
$filename = $source.Replace('/','_').Replace('\', '_') + '_' + (Get-Date -Format 'yyyyMMddHHmm') + '_logins.sql'
I had a backslash error when using a named instance.
Awwwww.....no pull request?
Sorry, I'm too old for that, I don't know how that works... Let me put my glasses on and see if I can figure it out