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

9 lines
172 B
PowerShell

try {
Set-MpPreference -DisableBehaviorMonitoring $false
Write-Output "Device Remediated"
exit 0
}
catch {
Write-Output "Remediation Failed"
exit 1
}