You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add-CippTestResult-TenantFilter $Tenant-TestId 'ZTNA24550'-TestType 'Devices'-Status 'Investigate'-ResultMarkdown 'Intune configuration policies not found in database'-Risk 'High'-Name 'Data on Windows is protected by BitLocker encryption'-UserImpact 'Low'-ImplementationEffort 'Low'-Category 'Device'
"Windows BitLocker policies exist but none are assigned."
71
+
''
72
+
"**Unassigned BitLocker Policies:**"
73
+
''
74
+
)
75
+
foreach ($Policyin$WindowsBitLockerPolicies) {
76
+
$ResultLines+="- $($Policy.name)"
77
+
}
78
+
}
79
+
else {
80
+
$ResultLines=@("No Windows BitLocker policy is configured or assigned.")
81
+
}
82
+
$Result=$ResultLines-join"`n"
83
+
}
84
+
85
+
Add-CippTestResult-TenantFilter $Tenant-TestId 'ZTNA24550'-TestType 'Devices'-Status $Status-ResultMarkdown $Result-Risk 'High'-Name 'Data on Windows is protected by BitLocker encryption'-UserImpact 'Low'-ImplementationEffort 'Low'-Category 'Device'
86
+
}
87
+
catch {
88
+
$ErrorMessage=Get-CippException-Exception $_
89
+
Write-LogMessage-API 'Tests'-tenant $Tenant-message "Failed to run test: $($ErrorMessage.NormalizedError)"-sev Error -LogData $ErrorMessage
90
+
Add-CippTestResult-TenantFilter $Tenant-TestId 'ZTNA24550'-TestType 'Devices'-Status 'Failed'-ResultMarkdown "Test failed: $($ErrorMessage.NormalizedError)"-Risk 'High'-Name 'Data on Windows is protected by BitLocker encryption'-UserImpact 'Low'-ImplementationEffort 'Low'-Category 'Device'
Add-CippTestResult-TenantFilter $Tenant-TestId 'ZTNA24552'-TestType 'Devices'-Status 'Investigate'-ResultMarkdown 'Intune configuration policies not found in database'-Risk 'High'-Name 'Data on macOS is protected by firewall'-UserImpact 'Low'-ImplementationEffort 'Low'-Category 'Device'
0 commit comments