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

11 lines
305 B
PowerShell

# Check if network protection is enabled
$networkProtection = Get-MpPreference | Select-Object -ExpandProperty EnableNetworkProtection
if ($networkProtection -eq 1) {
Write-Output "Network protection is enabled."
exit 0
} else {
Write-Output "Network protection is disabled."
exit 1
}