Skip to content

Commit

Permalink
Merge pull request #223 from jakehildreth/221-esc15-check-within-esc3…
Browse files Browse the repository at this point in the history
…-generates-key-cannot-be-null

Resolve #221
  • Loading branch information
SamErde authored Jan 14, 2025
2 parents d3ccefe + 3396ab9 commit e162e3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Invoke-Locksmith.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3202,7 +3202,7 @@ function Set-RiskRating {
# Default 'User' and 'Machine' templates are more dangerous
$ESC15 = Find-ESC15 -ADCSObjects $ADCSObjects -SafeUsers $SafeUsers -UnsafeUsers $UnsafeUsers -SkipRisk |
Where-Object { $_.Enabled -eq $true }
$ESC15Names = @('Machine', 'User')
$ESC15Names = @(($ESC15 | Where-Object Name -In @('Machine', 'User')).Name)
if ($ESC15Names) {
$CheckedESC15Templates = @{}
foreach ($name in $ESC15Names) {
Expand Down
2 changes: 1 addition & 1 deletion Private/Set-RiskRating.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ function Set-RiskRating {
# Default 'User' and 'Machine' templates are more dangerous
$ESC15 = Find-ESC15 -ADCSObjects $ADCSObjects -SafeUsers $SafeUsers -UnsafeUsers $UnsafeUsers -SkipRisk |
Where-Object { $_.Enabled -eq $true }
$ESC15Names = @('Machine', 'User')
$ESC15Names = @(($ESC15 | Where-Object Name -in @('Machine', 'User')).Name)
if ($ESC15Names) {
$CheckedESC15Templates = @{}
foreach ($name in $ESC15Names) {
Expand Down

0 comments on commit e162e3a

Please sign in to comment.