Files
Intune/intune/Externally Sourced Remediations/MicrosoftDefenderAV/Get-CloudDeliveredProtection/Detect_CloudDeliveredProtection.ps1
2025-05-19 15:19:36 -04:00

11 lines
315 B
PowerShell

# Check if cloud-delivered protection is enabled
$cloudProtection = Get-MpPreference | Select-Object -ExpandProperty MAPSReporting
if ($cloudProtection -ne 0) {
Write-Output "Cloud-delivered protection is enabled."
exit 0
} else {
Write-Output "Cloud-delivered protection is disabled."
exit 1
}