Skip to content

Commit

Permalink
Get-DbaProductKey - Continue on error (#9023)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasjordan committed Jul 4, 2023
1 parent 7df7772 commit da1ed45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/Get-DbaProductKey.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ function Get-DbaProductKey {
try {
$results = Invoke-Command2 -ComputerName $computer.ComputerName -Credential $Credential -ScriptBlock $scriptBlock -ArgumentList $server.VersionMajor, $instanceReg, $server.Edition
} catch {
Stop-Function -Message "Failure" -ErrorRecord $_
Stop-Function -Message "Failure" -ErrorRecord $_ -Continue
}

[pscustomobject]@{
Expand Down

0 comments on commit da1ed45

Please sign in to comment.