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

Updated June 2024: Stop getting error messages and slow down your system with our optimization tool. Get it now at this link
  1. Download and install the repair tool here.
  2. Let it scan your computer.
  3. The tool will then repair your computer.

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

June 2024 Update:

You can now prevent PC problems by using this tool, such as protecting you against file loss and malware. Additionally, it is a great way to optimize your computer for maximum performance. The program fixes common errors that might occur on Windows systems with ease - no need for hours of troubleshooting when you have the perfect solution at your fingertips:

  • 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.

Download Now

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.

Expert Tip: This repair tool scans the repositories and replaces corrupt or missing files if none of these methods have worked. It works well in most cases where the problem is due to system corruption. This tool will also optimize your system to maximize performance. It can be downloaded by Clicking Here

Related Video

Scroll to Top