What Is Data Execution Prevention And How It Works


what is data execution prevention
XINSTALL BY CLICKING THE DOWNLOAD FILE
A message from our partner

Fix Windows 11 OS errors with Fortect:

  • Download Fortect and install it on your PC
  • Launch the tool and Start scanning to find broken files that are causing the problems
  • Right-click on Start Repair to fix issues affecting your computer’s security and performance
Download Now Fortect has been downloaded by 0 readers this month, rated 4.6 on TrustPilot

Data Execution Prevention (DEP) helps Windows block malicious code from running in protected memory areas. The feature improves system security and reduces attacks that target memory issues. This guide explains how DEP works and shows you how to check or change its settings.

What Is Data Execution Prevention In Windows

DEP stops harmful programs from running code in parts of memory that only store data. Windows uses hardware and software protections to verify that apps run in safe memory regions.

Why DEP exists

DEP protects your device from exploits that take advantage of memory overflow or corruption. These attacks often try to run harmful instructions in data sections.

How DEP works

DEP marks certain memory areas as non executable. When an app tries to run code from one of these protected zones, Windows blocks it and shows a warning.

Supported Windows features

Windows uses hardware based DEP when the CPU includes NX or XD support. Windows also uses software based DEP for older hardware that does not support those flags.

How To Check If DEP Is Enabled

1. Check via System Information

System Information shows your current DEP status.

  1. Press Windows + R and type msinfo32
    msinfo32 Run command - Check if Windows 11 is UEFI or Legacy
  2. Select System Summary.
  3. Look for the entry labeled Data Execution Prevention.
  4. Confirm that it shows the feature as enabled for the system.

For a broader look at core protection settings, you can also review the virus and threat protection settings that work alongside DEP.

2. Check via Command Prompt

Command Prompt displays DEP details quickly.

  1. Open Start and type Command Prompt.
  2. Select Run as administrator.
    CMD - asus armoury crate not updating
  3. Type the following and press Enter: wmic OS Get DataExecutionPrevention_Available, DataExecutionPrevention_SupportPolicy
  4. Review the output to confirm DEP availability and support level.

How To Change DEP Settings

You can adjust DEP behavior from the Advanced settings panel.

  1. Press Windows + R and type sysdm.cpl
    sysdm.cpl
  2. Open the Advanced tab.
  3. Select Settings under Performance.
  4. Open the Data Execution Prevention tab.
  5. Choose one of the two available DEP options.
  6. Select Add if you want to exclude a specific program.
  7. Select Apply and restart your PC.

If you also manage advanced rule sets on the same device, you can open the Local Security Policy console to review other security options that work with DEP.

When To Adjust DEP

Most users should not change DEP. Only adjust the setting if a trusted program fails to run because DEP blocks it, and always confirm that the program comes from a reliable source before you create an exception.

Common DEP Error Causes

Many issues trigger a DEP warning. Understanding these causes helps you troubleshoot the right way.

  • Incompatible software Older apps sometimes use outdated memory operations that trigger DEP.
  • Malware attempts DEP often blocks unsafe instructions from malicious software.
  • Damaged system files Corrupt Windows system files sometimes create DEP alerts.

FAQs

Does turning off DEP improve performance

No. DEP does not slow down Windows, so you keep it on for system safety.

Can malware disable DEP

Yes. Some harmful tools try to disable DEP, so you keep security features active and scan the system regularly.

Does every CPU support hardware DEP

Most modern CPUs include NX or XD support. Older systems may rely on software DEP instead of hardware DEP.

Why does DEP block safe programs sometimes

Some legitimate apps use outdated memory routines that DEP flags as unsafe, so updating or replacing the program usually fixes the issue.

Conclusion

Data Execution Prevention helps your Windows PC block unsafe memory execution and reduce attack risks. Keep DEP enabled unless a trusted program requires an exception, and review any change carefully before you adjust the setting.

For a more detailed walkthrough of the available options, you can follow this Data Execution Prevention configuration guide that explains additional DEP tweaks for advanced users.

More about the topics: security, Windows 11

Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more

User forum

0 messages