Skip to content

Commit

Permalink
Update Confirm-SystemCompliance.psm1
Browse files Browse the repository at this point in the history
  • Loading branch information
HotCakeX committed Jul 3, 2024
1 parent cbb6280 commit f36e036
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1377,12 +1377,12 @@ function Confirm-SystemCompliance {
Method = 'Optional Windows Features'
})

# Verify MDAG is disabled
# Verify MDAG is not present
$NestedObjectArray.Add([HardeningModule.IndividualResult]@{
FriendlyName = 'Microsoft Defender Application Guard is enabled'
Compliant = [System.Boolean]($Results[5] -eq 'Disabled')
FriendlyName = 'Microsoft Defender Application Guard is not present'
Compliant = [System.Boolean]($Results[5] -eq 'Disabled' -or [System.String]::IsNullOrWhitespace($Results[5]))
Value = [System.String]$Results[5]
Name = 'Microsoft Defender Application Guard is enabled'
Name = 'Microsoft Defender Application Guard is not present'
Category = $CatName
Method = 'Optional Windows Features'
})
Expand Down Expand Up @@ -1440,7 +1440,7 @@ function Confirm-SystemCompliance {
# Verify Legacy WordPad is not present
$NestedObjectArray.Add([HardeningModule.IndividualResult]@{
FriendlyName = 'WordPad is not present'
Compliant = [System.Boolean]($Results[11] -eq 'NotPresent')
Compliant = [System.Boolean]($Results[11] -eq 'NotPresent' -or [System.String]::IsNullOrWhitespace($Results[11]))
Value = [System.String]$Results[11]
Name = 'WordPad is not present'
Category = $CatName
Expand Down

0 comments on commit f36e036

Please sign in to comment.