DefenderTroubleshooting

Tamper protection and Intune: why a Defender setting won't change, and how to fix it

What tamper protection locks, the four places it can be managed and their precedence, how to see which one controls a device, and how to fix settings that won't apply or exclusions that aren't protected.

Tamper protection is the Defender feature that stops anyone, including a local admin or a piece of ransomware, from switching off real-time protection. It's also the feature most often blamed when an Intune antivirus setting refuses to apply, or when a change made with PowerShell seems to succeed and then quietly doesn't. In this post I'll cover what it protects, the ways it's managed, how to see what is actually controlling it on a device, and how to fix the usual "the setting won't apply" complaints.

How this guide is organised: Symptoms → Why it happens → How to fix it → Verify the fix → Key takeawaysFlow diagram of the article's sections in reading order: 1. Symptoms. 2. Why it happens. 3. How to fix it (4 steps: Find out what is controlling tamper protection on the device; If the Intune setting won't apply; If you need to change a protected setting for a test; If exclusions aren't protected, or look empty). 4. Verify the fix. 5. Key takeaways. Toolbox: Event ID 5013, Get-MpPreference, Set-MpPreference, Get-MpComputerStatus, …\Microsoft\Windows Defender.1Symptoms2Why it happens3How to fix it4Verify the fix5Key takeaways1Find out what iscontrolling tamper prote…2If the Intune setting won'tapply3If you need to change aprotected setting for a t…4If exclusions aren'tprotected, or look emptyTOOLBOXEvent ID 5013Get-MpPreferenceSet-MpPreferenceGet-MpComputerStatus…\Microsoft\Windows DefenderHow this guide is organised: Symptoms → Why it happens → How to fix it → Verify the fix → Key takeawaysFlow diagram of the article's sections in reading order: 1. Symptoms. 2. Why it happens. 3. How to fix it (4 steps: Find out what is controlling tamper protection on the device; If the Intune setting won't apply; If you need to change a protected setting for a test; If exclusions aren't protected, or look empty). 4. Verify the fix. 5. Key takeaways. Toolbox: Event ID 5013, Get-MpPreference, Set-MpPreference, Get-MpComputerStatus, …\Microsoft\Windows Defender.1Symptoms2Why it happens3How to fix it1Find out what is controlling tamper protectionon the device2If the Intune setting won't apply3If you need to change a protected setting for atest4If exclusions aren't protected, or look empty4Verify the fix5Key takeawaysTOOLBOXEvent ID 5013Get-MpPreferenceSet-MpPreferenceGet-MpComputerStatus…\Microsoft\Windows Defender
At a glance: how this guide is organised · 4 fix steps · 5 key tools

Symptoms#

  • An Intune antivirus policy reports success, but Get-MpPreference still shows the old value for a protected setting.
  • Set-MpPreference, a script or Group Policy appears to change a setting, and Event ID 5013 appears in the Microsoft-Windows-Windows Defender/Operational log.
  • The Windows Security app shows the Tamper Protection toggle greyed out, or doesn't show it at all on some server versions.
  • Intune reports tamper protection as Not applicable for a device.
  • Exclusions you expected to be protected can still be edited locally, or the exclusion list looks empty on the device.
  • Tampering alerts appear in the Defender portal after a legitimate maintenance script runs.

Why it happens#

When tamper protection is on, these settings are locked to their secure values: virus and threat protection, real-time protection, behavior monitoring, antivirus protection including IOAV, cloud protection, security intelligence updates, automatic remediation of threats, Windows Security notifications, archive scanning, and (under the conditions covered below) exclusions. Attempts to change them through the registry are blocked, and changes from any management tool, including Group Policy, can look successful while being silently rejected. The protection keeps working even when Defender Antivirus runs in passive mode.

Four channels can manage it, with a strict precedence: a policy from Intune or Configuration Manager wins over the tenant-wide portal setting, and either wins over the local Windows Security app.

ChannelWhereScope
Intune (recommended)Endpoint security › Antivirus, platform Windows, profile Windows Security Experience, Defender section, Tamper protection (device) = OnAssigned user or device groups
Configuration Manager tenant attachPlatform Windows (ConfigMgr), profile Windows Security experience (ConfigMgr), Enable tamper protection to prevent Microsoft Defender from being disabled = EnabledConfiguration Manager collections; ConfigMgr can't set it natively
Microsoft Defender portalSettings › Endpoints › Advanced features › Tamper protectionTenant-wide; on by default for new tenants as part of built-in protection; doesn't override a policy
Windows Security appVirus & threat protection › Manage settingsOne device, and only when nothing else manages it

Intune management has its own requirements: the device must be onboarded to Defender for Endpoint (otherwise Intune shows Not applicable), it must be managed by Intune alone (co-managed devices aren't supported for this feature), it needs Windows 10 1709 or later with Defender platform 4.18.1906.3 or later, Intune and Defender must share the same Microsoft Entra tenant, and DisableLocalAdminMerge should be set to true.

Note: Microsoft is previewing controlled configuration, which extends tamper-protection-style enforcement to the whole Defender Antivirus configuration and makes Intune or Defender for Endpoint policy the only source of truth. Where the preview is available, the Intune setting is renamed Controlled Configuration (Device) with the values Off, Tamper Protection (On) and Controlled Configuration (On). The rename alone changes nothing: Tamper Protection (On) behaves as before, and Not configured does not mean Off. The new mode needs platform 4.18.26060.3004 or later and isn't supported for co-managed devices.

How to fix it#

1. Find out what is controlling tamper protection on the device#

PowerShell
Get-MpComputerStatus |
    Select-Object IsTamperProtected, TamperProtectionSource,
                  RealTimeProtectionEnabled, AMProductVersion

IsTamperProtected True means it's active; TamperProtectionSource tells you which channel set it. If the source isn't the one you expected, you've found the real problem: a portal toggle or an unexpected policy, not a broken Intune policy.

2. If the Intune setting won't apply#

  1. In the Defender portal, confirm the device is onboarded and its sensor is Active. Not onboarded means Not applicable in Intune.
  2. In Intune, open Endpoint security › All devices and check Managed by. A co-managed device (MDM/ConfigMgr Agent) isn't supported for Intune-managed tamper protection; use tenant attach for it instead.
  3. Check the policy's per-setting status for conflicts. Two Windows Security Experience profiles that disagree, or a profile plus a security baseline, produce a conflict.
  4. Confirm AMProductVersion meets the minimum platform version and that cloud-delivered protection is on; the portal-managed path depends on it.
  5. Sync the device and allow normal policy latency before judging.

3. If you need to change a protected setting for a test#

Don't fight tamper protection with scripts; use troubleshooting mode. On the device page in the Defender portal, choose Turn on troubleshooting mode. It can take up to 15 minutes to start, lasts four hours, is limited to eight hours per device per 24 hours, and the device must be online. While it's active, run:

PowerShell
Set-MpPreference -DisableTamperProtection $true
# make and test your change, for example:
Set-MpPreference -DisableRealtimeMonitoring $true

When troubleshooting mode expires, every policy-managed setting reverts. For a permanent change, change the policy or exclude the device from the tamper protection assignment instead.

4. If exclusions aren't protected, or look empty#

Exclusion protection has extra conditions: platform 4.18.2211.5 or later, DisableLocalAdminMerge enabled, exclusions managed centrally, and the device managed only by Intune or only by Configuration Manager with the Defender for Endpoint sensor enabled. Check these registry values (read only, don't change them):

ValueLocationMeaning
ManagedDefenderProductType = 6HKLM\SOFTWARE\Microsoft\Windows DefenderManaged only by Intune: requirement met
ManagedDefenderProductType = 7 and EnrollmentStatus = 4Same key, plus HKLM\SOFTWARE\Microsoft\SenseCMManaged by Configuration Manager: requirement met
ManagedDefenderProductType = 7 and EnrollmentStatus = 3As aboveCo-managed: exclusions aren't protected
TPExclusions = 1HKLM\SOFTWARE\Microsoft\Windows Defender\FeaturesExclusions are tamper protected (0 means they aren't)

If Get-MpPreference shows no exclusions at all, that's usually not tamper protection but the antivirus policy option that hides exclusions from local admins; check the policy before assuming the exclusions were lost. New exclusion policy from Intune or Configuration Manager still applies while exclusions are protected; you don't need to disable anything.

Verify the fix#

  • Get-MpComputerStatus shows IsTamperProtected True and the expected TamperProtectionSource.
  • The Windows Security app shows the toggle on and locked (except on Windows Server 2012 R2, 2016 and 2019 and older Windows 10 builds, where it isn't displayed).
  • Intune's policy report shows Succeeded for Tamper protection (device).
  • A test change with Set-MpPreference outside troubleshooting mode produces Event ID 5013 and no change.
  • Advanced hunting shows your maintenance window as tampering attempts, which is exactly what you want to see for anything that isn't your policy:
KQL
DeviceEvents
| where Timestamp > ago(7d)
| where ActionType == "TamperingAttempt"
| project Timestamp, DeviceName, InitiatingProcessFileName,
          InitiatingProcessAccountName, AdditionalFields
| order by Timestamp desc

Key takeaways#

  • Pick one channel. Intune policy beats the portal toggle, so if you use Intune, make it the single source and keep the tenant-wide toggle as the safety net for devices Intune doesn't manage.
  • Deploy DisableLocalAdminMerge and centrally managed exclusions so the exclusion lists get protected too.
  • Expect "succeeded but not applied" whenever anything other than your policy touches a protected setting; Event 5013 is the tell.
  • Defender Vulnerability Management flags devices where tamper protection is off; search the recommendations for tamper.
  • Watch for the controlled configuration rename in your Windows Security Experience profiles so a preview change doesn't surprise your pilot ring.

References#

Written and checked against current Microsoft Learn documentation. Test changes with a pilot group before rolling them out to everyone, and if an admin center path has moved since, search for the setting name instead.

Spotted a mistake, or did this fix work differently for you? Email me or message me on LinkedIn — corrections are credited in the article.

OE
Written by

Omer Eltayeb

Independent Microsoft Intune consultant in Cairo, Egypt, former Microsoft Cloud Solutions Architect, Microsoft Certified Trainer and Microsoft Innovative Educator Expert (2024–26) and Microsoft Elevate Educator Expert (2026–27). I share practical, step-by-step guides, study plans, scripts and toolkits for Microsoft Intune, Microsoft Entra ID, Microsoft Defender and Exchange Online with the community.

Microsoft Certified Trainer (MCT) 2026Microsoft Innovative Educator Expert 2025–2026Microsoft Elevate Educator Expert 2026–2027ISC2 Certified Information Systems Security Professional (CISSP)Microsoft 365 Certified: Enterprise Administrator Expert (MS-102)