It's based on Microsoft's own Windows Security support page and its Microsoft Learn documentation for tamper protection, all checked on 26 November 2026.
If you rely on Microsoft Defender Antivirus, the free antivirus built into Windows 11, one of the most useful settings is also one of the least known. Tamper protection is a switch in the Windows Security app that stops other apps from changing Defender's most important settings. Microsoft says the point is to stop malicious apps from disabling critical security features, such as your antivirus's real-time protection.
This guide explains what tamper protection actually locks down, how to check that it's switched on, how to turn it on or off, and what to do if it seems to be blocking a change you want to make.
What tamper protection does
Microsoft's Windows Security support page describes tamper protection as a feature that helps prevent malicious apps from changing important Microsoft Defender Antivirus settings, including real-time protection and cloud-delivered protection. The point is to keep your security configuration intact and stop malicious apps from disabling critical security features.
Crucially, it doesn't lock you out. Microsoft says that if tamper protection is on and you're an administrator on the PC, you can still change these settings in the Windows Security app. Other apps can't.
Microsoft Learn's tamper protection overview goes into more detail. On Windows, when tamper protection is enabled, these settings can't be changed:
Virus and threat protection stays enabled
Real-time protection stays on
Behaviour monitoring stays on
Antivirus protection, including IOfficeAntivirus (IOAV), stays enabled
Cloud protection stays enabled
Security intelligence updates continue
Automatic actions are taken on detected threats
Notifications stay visible in the Windows Security app
Archived files are scanned
Exclusions can't be modified or added
Microsoft also says attempts to modify Defender Antivirus settings through the registry are blocked. That covers one of the classic tricks: a script or installer that edits the registry to switch Defender off.
What tamper protection doesn't do is just as useful to know. According to Microsoft Learn, it doesn't stop you viewing security settings, and it doesn't affect how non-Microsoft antivirus apps register with the Windows Security app. The support page says the same: tamper protection doesn't affect how third-party antivirus apps work. So if you later install another antivirus suite, tamper protection isn't the thing that will stop it working. If you're weighing that decision, our comparison of Microsoft Defender vs paid antivirus covers the trade-offs.
Step 1: Open Windows Security
Open the Start menu, type Windows Security and open the app. This is the app Microsoft's support page uses for all of Defender's virus and threat protection settings.
Step 2: Go to Virus & threat protection settings
Microsoft Learn's steps for configuring tamper protection on an individual device are:
In the Windows Security app, go to Virus & threat protection.
In the Virus & threat protection settings section, select Manage settings.
In the Virus & threat protection settings pane, slide the Tamper Protection toggle to On (or Off).
You'll see tamper protection listed among the other Defender settings on that page, such as real-time protection, Dev Drive protection, cloud-delivered protection and automatic sample submission.
If the toggle is already on, there's nothing more to do. Leave it that way.
Step 3: Check the status with PowerShell (optional)
If you'd rather confirm the setting from the command line, or you want to check a family member's PC quickly, Microsoft documents this PowerShell command:
Get-MpComputerStatus | Select-Object IsTamperProtected, RealTimeProtectionEnabled
Microsoft says a value of True means the setting is enabled and False means it's disabled. You'll see two results: whether tamper protection is on, and whether real-time protection is on. Ideally both should read True.
Note what PowerShell can't do here. Microsoft Learn states plainly that you can't use PowerShell to configure tamper protection during normal operation. That's deliberate: if a script could turn it off, malware could too.
Why a setting might not change
Tamper protection can cause some confusion when you're trying to change Defender's behaviour on purpose. Here are the situations Microsoft documents.
You can't turn off real-time protection
Microsoft's support page says that if tamper protection is turned on, you'll need to turn it off before you can turn real-time protection off. That's the system working as designed. Before you do it, think about whether you really need to.
If the reason is that Defender keeps flagging a particular file or folder you trust, Microsoft suggests a safer option: add an exclusion for that single file or folder rather than turning antivirus protection off entirely. Bear in mind that exclusions are one of the settings tamper protection protects, so you'll make that change in the Windows Security app yourself, not through a third-party tool. Microsoft also warns that an exclusion means Defender will no longer check those files for threats, so only exclude things you're certain about.
Microsoft Learn notes that when tamper protection is on, changes made through a management tool, including Group Policy, might appear to succeed, but tamper protection blocks them. If you've used a "debloat" script, a registry tweak or a privacy utility that claims to disable parts of Defender, and Defender is still running, this is probably why. In that case tamper protection did exactly its job.
Your PC is managed by work or school
Tamper protection can also be managed centrally by an organisation using Microsoft Intune or the Microsoft Defender portal. Microsoft Learn says a policy that manages tamper protection takes precedence over the organisation-wide setting in the Defender portal, and that a policy or portal setting takes precedence over a setting a local administrator configures in the Windows Security app. In other words, if your laptop is managed by your employer or school, the toggle may be locked or reset by IT. Ask them rather than trying to work around it.
For businesses, Microsoft also describes a troubleshooting mode for temporarily disabling tamper protection when a protected setting needs to change. That's aimed at managed devices, not home PCs.
When should you turn tamper protection off?
For a typical home gaming or work PC, the honest answer is almost never. Tamper protection doesn't block you from changing settings yourself. It just makes sure that whatever changes Defender's configuration is you, in the Windows Security app.
Reasonable exceptions are rare and temporary, such as following a specific instruction from a software vendor's support team to switch off real-time protection for a short troubleshooting step. If you do turn tamper protection off, turn it back on as soon as you've finished, and check that real-time protection is also back on using the PowerShell command above.
Build a sensible Windows 11 security setup
Tamper protection is one layer. A few more free settings in Windows 11 work well alongside it:
If Windows itself seems damaged, for example Windows Security won't open properly, our guide to repairing Windows 11 with DISM and SFC is a good next step.
Our verdict
Tamper protection is a free, built-in Windows 11 setting that stops malicious apps from switching off Microsoft Defender's real-time protection, cloud protection, behaviour monitoring and exclusions, including through the registry, while still letting you change those settings yourself as an administrator in the Windows Security app. Check it under Virus & threat protection > Manage settings, or with Get-MpComputerStatus in PowerShell, and leave it on. Turn it off only briefly for a specific troubleshooting step, use a file or folder exclusion instead of disabling Defender where you can, and leave work or school PCs to your IT team.