Skip to content

Commit

Permalink
Correctly identify Cred Guard being enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaulson45 committed Apr 23, 2024
1 parent f2bdc29 commit 12626cd
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 12626cd

Please sign in to comment.