Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion private/functions/Get-LoginPasswordHash.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ function Get-LoginPasswordHash {
$hashedPassDt = $server.ConnectionContext.ExecuteWithResults($sql)
$hashedPass = $hashedPassDt.Tables[0].Rows[0].Item(0)
} catch {
Stop-Function -Message "Failed to retrieve password hash for login $($Login.Name)" -ErrorRecord $_ -Target $Login -Continue
# No -Continue here: no loop encloses this catch, so the continue would escape the function
# and bypass the null-hash handling of the caller (#10638).
Stop-Function -Message "Failed to retrieve password hash for login $($Login.Name)" -ErrorRecord $_ -Target $Login
return
}
}
Expand Down