How to Disable DEP (Data Execution Prevention) in Windows 10

Turn Off DEP in Windows 10: Sometime Data Execution prevention causes an error and in that case it important to turn it off and in this article, we are going to see exactly how to turn off DEP.

Data Execution Prevention (DEP) is a security feature that can help prevent damage to your computer from viruses and other security threats. Harmful programs can try to attack Windows by attempting to run (also known as execute) code from system memory locations reserved for Windows and other authorized programs. These types of attacks can harm your programs and files.

DEP can help protect your computer by monitoring your programs to make sure that they use system memory safely. If DEP notices a program on your computer using memory incorrectly, it closes the program and notifies you.

How to Disable DEP (Data Execution Prevention) in Windows 10

You can easily turn off Data execution prevention for a particular program by the following steps below:

NOTE: DEP can be turned off globally for the entire system but it’s not recommended as it will make your computer less secure.

How to Disable DEP in Windows 10

1. Right-click on My Computer or This PC and choose Properties. Then click on Advanced system settings in the left panel.

On the left side of the following window, click on Advanced System Settings

2. In Advanced tab click on Settings under Performance.

Click on the Settings button under the Performance label

3. In the Performance Options window, click on the Data Execution Prevention tab.

By default DEP is turned on for essential Windows programs and services

Now you have two options as you can see, by default DEP is turned on for essential Windows programs and services and if the second one is selected, it will turn on DEP for all programs and services (not just Windows) except those which you select.

4. If you are facing issues with a program then select the second radio button which would Turn on DEP for all programs and services except those you select and then add the program that is having the problem. However, DEP is now turned on for every other program in Windows and you might end up where you started i.e. you may start having the same problem with other Windows programs. In that case, you have to manually add each program that is having a problem to the exception list.

5. Click the Add button and browse to the location of the program’s executable you want to remove from DEP protection.

Click the Add button and browse to the location of the programs executable

NOTE: While adding programs to the exception list you might get an error message saying “You can not set DEP attributes on 64-bit executables” when adding a 64-bit executable to the exception list. However, there is nothing to worry about as it means your computer is 64-bit and your processor already supports hardware-based DEP.

computer supports hardware based DEP

Your computer’s processor supports hardware-based DEP means that all the 64-bit processes are always protected and the only way to prevent DEP from protecting a 64-bit application is to turn it off completely. You cannot manually turn off DEP, in order to do so you have to use the command line.

Turn DEP Always On or Always Off using Command Prompt

Turning DEP always on means it will be always on for all processes in Windows and you cannot exempt any process or program from protection and turning DEP always off means it will be completely turned off and no process or program including Windows will be protected. Let’s see how to enable both of them:

1. Right-click on the windows button and select Command Prompt (Admin).

2. In cmd (command prompt) type these following commands and hit enter:

To always turn on DEP:  bcdedit.exe /set {current} nx AlwaysOn
To always turn off DEP: bcdedit.exe /set {current} nx AlwaysOff

always turn on or off DEP

3. There is no need to run both of the commands, as shown above, you only need to run one. You will also need to restart your PC after any change you made to DEP. After you have used one of the above commands, you will notice that the windows interface for changing DEP settings has been disabled, so only use command-line options as a last resort.

DEP settings disabled

You may also like:

That’s it you have successfully learned How to turn Off DEP (Data Execution Prevention). So this is all we can discuss DEP, how to turn DEP off, and how to always turn DEP on/off and if you still have doubt or question regarding anything feel free to comment.

3 thoughts on “How to Disable DEP (Data Execution Prevention) in Windows 10”

  1. Thanks for this article. I couldn’t figure out why a program that I had used for years on many different windows versions suddenly starting giving the 0xc0000005 application error message on only one of my PCs. My other machines had this game on them and all worked. This PC had it installed and used to work fine. I couldn’t figure out exactly when it went bad as I sometime only use this game once a month or so. Months passed without a solution. Then in a search I found this article which fixed my problem. What was the solution? It was that DEP protection was killing a dll file that the main exe file called. I chose to not allow DEP on the EXE program and low and behold it started working again. So I’m still using DEP for all programs but am then specifically telling the settings to not use it for the EXE program that fails.

    Thanks for the help. I never would have thought that DEP settings would stop a beloved program from starting at all.

  2. When I go to the advanced settings to the dep screen there are no radio button to turn on or of nor can I choose a program for it to exempt. So I go to the command prompt to turn it off and it gives me an error saying something about the boot registry or something. Is there another way to.do this because the del feature keeps me from playing most pc games besides my emulators.

  3. Avatar photo
    tham lot san gia re

    I enjoy, lead to I found exactly what I was taking a look for.
    You’ve ended my four day long hunt! God Bless you man. Have a great day.
    Bye

Leave a Comment

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