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

9 lines
161 B
PowerShell

try {
Set-MpPreference -PUAProtection Enabled
Write-Output "Device Remediated"
exit 0
}
catch {
Write-Output "Remediation Failed"
exit 1
}