Skip to content

Commit

Permalink
fix typo in Get-DecryptedObject.ps1 (#9054)
Browse files Browse the repository at this point in the history
Co-authored-by: Jess Pomfret <jpomfret7@gmail.com>
  • Loading branch information
Dirk Hondong and jpomfret committed Aug 14, 2023
1 parent 1d6f8da commit 72f8abf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions private/functions/Get-DecryptedObject.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function Get-DecryptedObject {
return $serviceKey
}
} catch {
Stop-Function -Message "Can't unprotect registry data on $sourceName. Do you have administrative access to the Windows registry on $sourceName? Otherwise, we're out of ideas." -Target $sourceName
Stop-Function -Message "Can't unprotect registry data on $sourceName. Do you have administrative access to the Windows registry on $($sourceName)? Otherwise, we're out of ideas." -Target $sourceName
return
}

Expand All @@ -59,7 +59,7 @@ function Get-DecryptedObject {

if (($serviceKey.Length -ne 16) -and ($serviceKey.Length -ne 32)) {
Write-Message -Level Verbose -Message "ServiceKey found: $serviceKey.Length"
Stop-Function -Message "Unknown key size. Do you have administrative access to the Windows registry on $sourceName? Otherwise, we're out of ideas." -Target $sourceName
Stop-Function -Message "Unknown key size. Do you have administrative access to the Windows registry on $($sourceName)? Otherwise, we're out of ideas." -Target $sourceName
return
}

Expand Down Expand Up @@ -208,4 +208,4 @@ function Get-DecryptedObject {
ProviderName = $ProviderName
}
}
}
}

0 comments on commit 72f8abf

Please sign in to comment.