Enable, disable data execution prevention (DEP) in Windows 10/8/7/7

RECOMMENDED: Click here to fix Windows errors and optimize system performance

We have already seen how Data execution prevention, a security feature can help prevent damage caused to your computer by viruses and other security threats. Malicious programs that attempt to attack Windows by attempting to execute code from system memory locations reserved for Windows and other authorized programs are stopped. This type of attack can harm your programs and files. DEP can help protect your computer by monitoring your programs to ensure they are using system memory safely. If DEP detects a program on your computer that uses the memory incorrectly, it closes the program and informs you. It is therefore a security element.

This is not recommended, but you can disable data execution prevention on your Windows computer. Let’s see how to disable DEP under Windows 10/8/7 with the bcdedit.exe tool.

Disable data execution prevention

On Windows, type cmd in Start search. Right-click on the’cmd’ search results and click Run as administrator. Windows 10/8 users can also open a high command prompt window from the WinX menu.

Then copy the following and press Enter :

bcdedit.exe /set {current} nx AlwaysOff


You will notice that data execution prevention has been disabled on your Windows computer. You can then check the status of the data execution prevention function on your system if you wish.

Enable data execution prevention

February 2021 Update:

We now recommend using this tool for your error. Additionally, this tool fixes common computer errors, protects you against file loss, malware, hardware failures and optimizes your PC for maximum performance. You can fix your PC problems quickly and prevent others from happening with this software:

  • Step 1 : Download PC Repair & Optimizer Tool (Windows 10, 8, 7, XP, Vista – Microsoft Gold Certified).
  • Step 2 : Click “Start Scan” to find Windows registry issues that could be causing PC problems.
  • Step 3 : Click “Repair All” to fix all issues.


To enable DEP again, type the following in a high prompt and press Enter :

bcdedit.exe /set {current} nx AlwaysOn

This will prevent data execution again.

See this when you receive the message Startup configuration data could not be opened.

      1. Enable or disable data execution prevention (DEP) for Internet Explorer only
      2. Enable or disable data execution prevention (DEP) for individual programs.

RECOMMENDED: Click here to troubleshoot Windows errors and optimize system performance

Related Video