Skip to content

Commit 9cb522e

Browse files
committed
resolve comments from Aleks
1 parent 633a698 commit 9cb522e

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/powershell/tests/Test-Assessment.41050.ps1

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,14 @@ function Test-Assessment-41050 {
8484

8585
foreach ($queryError in @($controlProfileError, $secureScoreError) | Where-Object { $null -ne $_ }) {
8686
if ((Get-ZtHttpStatusCode -ErrorRecord $queryError) -in (401, 403)) {
87-
Add-ZtTestResultDetail -SkippedBecause NotApplicable -Result 'Microsoft Graph returned HTTP 401 or 403; grant SecurityEvents.Read.All and assign Security Reader or Security Administrator for delegated runs.'
87+
$params = @{
88+
TestId = '41050'
89+
Title = 'Attack surface reduction (ASR) rules are enabled in block mode'
90+
Status = $false
91+
Result = '⚠️ Microsoft Graph returned HTTP 401 or 403. Verify SecurityEvents.Read.All is granted, Secure Score data is flowing, and at least one MDE device is onboarded.'
92+
CustomStatus = 'Investigate'
93+
}
94+
Add-ZtTestResultDetail @params
8895
return
8996
}
9097
}

0 commit comments

Comments
 (0)