Disable or Enable Data Execution Prevention (DEP) in Windows 8

To disable DEP(Data Execution Prevention) in Windows 8, you have to use the command prompt and a few commands.

DEP preview

What is Data Execution prevention?

In Microsoft’s own words :

Data Execution Prevention (DEP) is a set of hardware and software technologies that perform additional checks on memory to help prevent malicious code from running on a system. In Microsoft Windows XP Service Pack 2 (SP2) and Microsoft Windows XP Tablet PC Edition 2005, DEP is enforced by hardware and by software.

The primary benefit of DEP is to help prevent code execution from data pages. Typically, code is not executed from the default heap and the stack. Hardware-enforced DEP detects code that is running from these locations and raises an exception when execution occurs. Software-enforced DEP can help prevent malicious code from taking advantage of exception-handling mechanisms in Windows.

How to check whether DEP is enabled or not?

1. Switch to Desktop Mode by pressing Windows + M.

2. Right-click on the My Computer icon and select Properties.

 Select property

3. Now click on Advanced System Settings on the left pane of System property window.

 advance system Settings

4. Now click on the settings under the Performance area.

 performance settings

5. Now click on the Data Execution Prevention tab . below you will see “Your computer processor support hardware-based DEP” if your computer supports so.


How to Enable or Disable DEP?

To disable or enable DEP, follow the instructions below.
1. Open the Task manger. Under the File tab, click on New task(Run) .

 new Task

2. In the Run window, type cmd . Select the checkbox below to give it Administrative privilege.

 cmd form run

3. Open the Task manger. Under the File tab, click on New task(Run) .

 new Task

Disable DEP

In the strong>Command prompt , type

bcdedit.exe /set {current} nx AlwaysOff and press Enter.

Enable DEP

In the strong>Command prompt , type

bcdedit.exe /set {current} nx AlwaysOn and press Enter.

 cmd output

If you want to disable or enable permanently, remove {current} from the above two commands.
Remember, If you become unable to start Windows after restarting, open Windows in Safe Mode and do the reverse action.

Twitter.png Facebook.png GooglePlus.png Pinterest.png LinkedIn.png Tumblr.png Email.png
4 of 5 0 (80%) 4 votes

- Cheers!