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

11 lines
305 B
PowerShell

# Check if tamper protection is enabled
$tamperProtection = Get-MpPreference | Select-Object -ExpandProperty DisableTamperProtection
if ($tamperProtection -eq $false) {
Write-Output "Tamper protection is enabled."
exit 0
} else {
Write-Output "Tamper protection is disabled."
exit 1
}