Enable, Disable Data Execution Prevention (DEP) in Windows 7| 8

We have already seen how Data Execution Preventiona security feature can help prevent damage to your computer from viruses and other security threats. Harmful programs who try to attack Windows by attempting to execute code from system memory locations reserved for Windows and other authorized programs, are stopped. 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. It is as such a security feature.

While it is not recommended, you may have your reasons for wanting to disable Data Execution Prevention on your Windows computer. Lets us see how to disable DEP in Windows 8 | 7 using the bcdedit.exe tool.

Disable Data Execution Prevention

In Windows 7, type cmd in Start Search. Right click on search results ‘cmd’ and click on Run as Administrator. Windows 8 users can also open an elevated command prompt window via the WinX menu.

Then, copy paste the following and hit Enter:

bcdedit.exe /set {current} nx AlwaysOff

cmd off Enable, Disable Data Execution Prevention (DEP) in Windows 7| 8

Reboot.

You will find that Data Execution Prevention has been disable on your Windows computer. You may then, if you wish, verify the status of Data Execution Prevention feature on your system.

Enable Data Execution Prevention

To enable back DEP, type the following in an elevated command prompt and hit Enter:

bcdedit.exe /set {current} nx AlwaysOn

cmd oon Enable, Disable Data Execution Prevention (DEP) in Windows 7| 8

This will enable back Data Execution Prevention.

In the next few days, we will also show you how to:
  1. Enable or Disable Data Execution Prevention (DEP) for Internet Explorer only
  2. Turn Off or On Data Execution Prevention (DEP) for Individual Programs.
Posted by on , in Category Windows with Tags
Anand Khanse aka HappyAndyK is an end-user Windows enthusiast, a Microsoft MVP in Windows, since 2006, and the Admin of TheWindowsClub.com. Please create a System Restore Point before trying out any software & be careful about any third-party offers while installing freeware. Add me on Google+.
  • maxxxem

    Thank you!

  • Kalpesh Parmar

    I followed your command on cmd with ‘open as admin”..But it shows “An error has occurred setting the element data.The value is protected by Secure booy policy and cannot be modified or deleted.”

  • Recent Comments