How To:Disable Data Execution Prevention (DEP) in Windows Vista or in XP

Viruses and other security threats can control your PC by executing code from within memory. To prevent damage, the Data Execution Prevention (DEP) feature in Windows operating system monitors program applications to ensure they use protected memory in a safe manner. Any incorrect usage, by an application, of protected memory and Data Execution Prevention steps in and automatically closes the application.Simply,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 Vista, Microsoft Windows XP Service Pack 2 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.

There may come a time when have to disable DEP either for the purpose of troubleshooting a problem or otherwise.The instructions to disable Data Execution Prevention (DEP) in Windows Vista or in Windows XP is given below:

Disable Data Execution Prevention (DEP) in Windows Vista

dep vista

If you still run into problems, you can run setup from the command line like so: setup.exe /ignoredeperror

Note: if you ever need to enable DEP again, you can follow the same steps except provide “AlwaysOn” as the final parameter to the bcdedit.exe command in the Command Prompt.ie,bcdedit.exe /set {current} nx AlwaysOn

Disable Data Execution Prevention (DEP) in Windows XP

Be sure to enter this text carefully and exactly as it’s mentioned above. Failure to do so could prevent your computer from booting.
Your boot.ini file should read:/noexecute=AlwaysOff

This setting does not provide any DEP coverage for any part of the system, regardless of hardware DEP support.

Verifying DEP is Disabled in Windows XP

DEP is now completely disabled in Windows XP. If you want to enable it again, follow this guide but instead of replacing OptIn with AlwaysOff, replace AlwaysOff with OptIn (the default).

Also you can try….

If a program is failing and you want to disable DEP to see if that is the cause. Here are the steps. (Just disable DEP for the program in question and don’t disable it for your whole system.)

dep vista selected

IMPORTANT: After making any changes in the boot.ini file, you must restart your computer.

WARNING: Microsoft recommends that you do NOT disable software-enforced DEP globally. To do this would make your computer less secure. Hardware-enforced DEP cannot be manually disabled.

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google

Popularity: 18%

Did You Like This Post? Then You Might Find These Also Interesting:

Written by Tony on December 29th, 2008 with 2 comments.
Read more articles on Vista Performance and XP Performance.

Related articles

2 comments

Read the comments left by other users below, or:

Get your own gravatar by visiting gravatar.com Karolyn
#1. March 8th, 2009, at 5:46 PM.

I tried to turn off the DEP in Windows Vista by the command prompt> Run as Administrator > bcdedit.exe /set {current} nx AlwaysOff > and the prompt stated that “The operation completed successfully.“ After I rebooted DEP was still shutting down Microsoft Works. I miss my Windows XP and I’m thinking I might just start using a Macintosh computer. Is there anyway to remove DEP completely from the computer? I’m very frustrated!! Microsoft has not got back to me yet.

By the way,
I love this website, it’s the best on tips I’ve found so far,
Karolyn

Get your own gravatar by visiting gravatar.com lanclip.com
#2. October 31st, 2009, at 2:19 PM.

thanks so much, DEP is using to protect OEM of Window and protect system. Turn off DEP, all programe is not protected.

Leave your comment...

If you want to leave your comment on this article, simply fill out the next form:




You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .