Skip to content
Follow
Windows

How to Enable or Disable DEP in Windows 11

Richard
Written by
Richard
Feb 12, 2026 Updated Sep 15, 2026 3 min read
How to Enable or Disable DEP in Windows 11
How to Enable or Disable DEP in Windows 11

Data Execution Prevention (DEP) is a built-in security feature in Windows 11 that stops harmful code from running in your computer memory by checking programs before they start. Most modern Windows 11 PCs turn on DEP for all programs by default to keep your system safe from viruses.

Advertisement

You can change these settings or turn DEP off for a specific program if a trusted app stops working properly on your PC.

⚡ Quick Answer

To enable or disable DEP in Windows 11, open Windows Security, go to App & browser control, then Exploit protection settings. Under the System settings tab, find Data Execution Prevention and choose your desired setting from the dropdown menu. It’s recommended to keep DEP on by default for security.

Advertisement

How to Turn DEP On or Off in 🪟 Windows 11

Data Execution Prevention (DEP) settings in Windows 11 can be changed through the Windows Security app by going to the App & browser control settings and opening the exploit protection settings. You need to use an administrator account to change these options. Keeping DEP Windows 11 turned on helps protect your computer memory from harmful code and malware attacks.

  1. Open the Windows Security App

    Click on the Start menu button (the Windows icon on the bottom-left of your screen). In the search box, type Windows Security and click on the Windows Security app that appears.
  2. Windows Security app search on start menu
    windows security app search on start menu
  3. Go to App & Browser Control

    In the Windows Security app, look at the left side menu and click on App & browser control.
  4. App and browser control section in Windows Security app
    windows 11 app and browser control section windows security app
  5. Open Exploit Protection Settings

    Scroll down until you see Exploit protection. Click on the link that says Exploit protection settings.
  6. Windows Exploit protection settings screen
    Windows Exploit protection settings
  7. Find Data Execution Prevention (DEP)

    In the new window, click on the System settings tab at the top. Here, you will see the option for Data Execution Prevention.
  8. Choose Your DEP Setting

    Click the dropdown menu next to Data Execution Prevention and pick one of these options:
    • On by default – DEP is turned on (recommended)
    • Off by default – DEP is turned off
    • Use default (On) – Uses the system’s default setting, which is usually on
  9. DEP settings dropdown options
    Windows Exploit protection settings options

After you choose your preferred setting, just close the Windows Security app.

Why Does DEP Matter?

Data Execution Prevention (DEP) matters because it monitors your computer memory to block harmful programs from running in areas reserved for safe system files. This core security feature stops malware from taking control of your PC and prevents sudden crashes caused by malicious code. Leaving DEP enabled gives your computer an essential layer of defense against modern online threats.

Usually, you want DEP turned on to protect your PC.

Advertisement
⚠️WarningIf you have special software that doesn’t work well with DEP, you might need to turn it off temporarily.

For more details about DEP, you can visit the official Microsoft support page: What is Data Execution Prevention (DEP)?

Summary

Data Execution Prevention (DEP) in Windows 11 is a built-in security feature that protects your system memory from malicious code and unauthorized access. It runs automatically in the background to keep your PC safe from common security threats and software crashes. You can check your current protection status or change settings at any time through the Windows Security app.

It’s usually on by default and helps keep your PC safe.

Advertisement

You can easily check or change DEP settings using the Windows Security app.

⚠️WarningKeep DEP on unless you have a special reason to turn it off.

What is DEP on 🪟 Windows 11?

Data Execution Prevention (DEP) is a set of hardware and software technologies that perform additional checks on memory to help protect against malicious code exploits.

Should I turn on DEP for all programs?

DEP automatically monitors essential Windows programs and services, so you shouldn't turn it off. However, there are scenarios where you might need to disable DEP, such as compatibility issues with older 32-bit applications. You can increase your protection by having DEP monitor all programs.

How to change DEP settings in 🪟 Windows 11?

In left hand click on app and browser control. Now I scroll down under exploit protection you will find exploit protection settings click on it. And here you will find data execution prevention. And

Was this guide helpful?

100% of readers found this helpful (1 votes)

Tags: #Windows 11
Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

Advertisement

📚 Related Tutorials

How to Disable Windows Firewall on Windows 11
Windows How to Disable Windows Firewall on Windows 11
How to Activate Microsoft Defender Antivirus in Windows 11
Windows How to Activate Microsoft Defender Antivirus in Windows 11
How to Enable or Disable Windows Security Notifications in Windows 11
Windows How to Enable or Disable Windows Security Notifications in Windows 11
Enhance Windows 11 Security with System Guard
Windows Enhance Windows 11 Security with System Guard

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *