Skip to content

Commit

Permalink
Merge pull request #2073 from microsoft/dpaul-HcCredGuard
Browse files Browse the repository at this point in the history
Correctly identify Cred Guard being enabled
  • Loading branch information
dpaulson45 authored Apr 24, 2024
2 parents f2bdc29 + 12626cd commit fd8e854
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function Invoke-AnalyzerFrequentConfigurationIssues {

if (-not ($credGuardUnknown)) {
# CredentialGuardCimInstance is an array type and not sure if we can have multiple here, so just going to loop thru and handle it this way.
$credGuardRunning = $null -ne ($osInformation.CredentialGuardCimInstance | Where-Object { $_ -ne 0 })
$credGuardRunning = $null -ne ($osInformation.CredentialGuardCimInstance | Where-Object { $_ -eq 1 })
}

$displayValue = $credentialGuardValue = $osInformation.RegistryValues.CredentialGuard -ne 0 -or $credGuardRunning
Expand Down

0 comments on commit fd8e854

Please sign in to comment.