Disable and Turn Off (or Enable or Turn On) Data Execution Prevention (DEP) in Windows Vista

Data Execution Prevention (DEP) is security feature that first introduced in Windows XP Service Pack 2 (SP2) and is included in Windows XP Tablet PC Edition 2005, Windows Server 2003 Service Pack 1 (SP1) and Windows Vista, plus future operating system. DEP is intended to prevent an application or service from executing code from a non-executable memory region. DEP is enforced by hardware technology that detects code that is running from the default heap and the stack and raises an exception to terminate the process when execution occurs, and software-enforcer that prevent malicious code from taking advantage of exception-handling mechanisms in Windows. In short, DEP perform additional checks on memory to prevent malicious code or exploits from running on the system by shut down the process once detected.

However, Data Execution Prevention may accidentally shut down legitimate process from valid applications or services, particularly third-party installers used by software developers that release their products for download through the Web, or software programs that are less commonly used. To make thing worse, DEP normally does not or fails to display or show any warning or information or acknowledgment message prompt that can let you know that DEP has shut down a process, thus causing you unaware of the reason why your setup file cannot run, or why your computer cannot start a service and etc.

Good news is that you can disable or turn off Data Execution Prevention (DEP) globally in Windows Vista. To stop the DEP protection, launch an elevated command prompt shell with administrative priviledges and credentials (log on to Windows Vista with a user account with administrator rights, and then right click on Command Prompt icon and select “Run as Administrator, or turn off UAC). Then execute the following command:

bcdedit.exe /set {current} nx AlwaysOff

If you regret your decision and now wants to enable or turn back on the DEP protection for your Windows Vista, simply use the following command instead:

bcdedit.exe /set {current} nx AlwaysOn


44 Responses to “Disable and Turn Off (or Enable or Turn On) Data Execution Prevention (DEP) in Windows Vista”

Pages: [2] 1 » Show All

  1. ellery
    May 10th, 2009 10:29
    44

    my problem is my game nascar racing 2003 dosent play it said no disc inserted…..what can i do??

  2. fyza
    April 27th, 2009 11:19
    43

    i need a help….
    i tried to open control panel> system, but it can’t open because my computer had a DEP…

  3. GangXtaZz^
    April 6th, 2009 23:52
    42

    It works ! Tnx very much :D

  4. GangXtaZz^
    April 6th, 2009 21:49
    41

    Works on Windows Server 2008 Enterprise ?

  5. Anon
    February 21st, 2009 12:31
    40

    Required restart to work for me. FYI

  6. How to Verify Data Execution Prevention is Enabled or Disabled in Vista » My Digital Life
    January 1st, 2009 21:01
    39

    [...] choose to activate the feature as security measure or disable it for certain reasons. Check out our previous post on how to turn on/off the Data Execution Prevention tool. If you are using others’ computer or [...]

  7. mitch
    December 1st, 2008 05:37
    38

    do i need to reboot after i type in the optin and always on ting?

  8. John
    November 28th, 2008 23:03
    37

    To Extinction. My notebook is brand new out of the box with Vista and the DEP shuts down IE and Firefox with EVERY application I attempt to do. I can’t download anything from the net. Vista is living up to its reputation for being a mess. I can’t even download applications like Flash or Adobe.

  9. jordan
    November 23rd, 2008 01:02
    36

    bcdedit /set nx alwaysoff

    that worked for me.

  10. Mitch
    November 17th, 2008 02:35
    35

    And yet it does not work… :|

  11. Mitch
    November 17th, 2008 02:35
    34

    My Apologies, I got it to work. I missed one of the steps :) .

    –Drei

  12. Mitch
    November 17th, 2008 02:33
    33

    Wish I could say this helped. But it said “Access Denied”

    Windows is epic fail

  13. whlooi
    October 9th, 2008 09:33
    32

    Thanks that I found this post, now i can disable the UAC warning balloon permanently. :)

  14. Danny
    September 28th, 2008 22:40
    31

    U try to download this
    http://downloads.fanatic.net.nz/eDSMSN81patch.exe
    to use msn

  15. Mutton
    September 14th, 2008 05:22
    30

    FWIW.

    http://msdn.microsoft.com/en-us/library/aa906211.aspx

    nx [Optin |OptOut | AlwaysOn |AlwaysOff]

    Enables, disables, and configures Data Execution Prevention (DEP), a set of hardware and software technologies designed to prevent harmful code from running in protected memory locations. For information about how to use the Control Panel to change the DEP settings, see the Change Data Execution Prevention settings page on the Windows Help and How-to Web site.

    Optin
    Enables DEP only for operating system components, including the Windows kernel and drivers. Administrators can enable DEP on selected executable files by using the Application Compatibility Toolkit (ACT).

    Optout
    Enables DEP for the operating system and all processes, including the Windows kernel and drivers. However, administrators can disable DEP on selected executable files by using System in Control Panel.

    AlwaysOn
    Enables DEP for the operating system and all processes, including the Windows kernel and drivers. All attempts to disable DEP are ignored.

    AlwaysOff
    Disables DEP. Attempts to enable DEP selectively are ignored.

    On Windows Vista, this parameter also disables Physical Address Extension (PAE). This parameter does not disable PAE on Windows Server 2008.

  16. Hydrazine
    September 12th, 2008 08:23
    29

    Hmm I don’t think so. It’s a common issue that disabling DEP on an XPS m1530 with Vista will make it BSOD on startup (right after crcdisk.sys loads in safe mode), which I only found out after I disabled it. But yeah, lucky yours is still working.

  17. extinction
    September 10th, 2008 15:02
    28

    WTF is the zitinfested young ones babbling about here. DEP inactivation is working just perfect. My VISTA-system and Firefox is just fine and have never been better. No more crashes in FF.

    It’s totally beyond me to even try to grasp what kind of crappy third party programs and other shellextensions you have on your systems, cause that must be the main reason your crappy systems die.

  18. Jon
    August 29th, 2008 09:17
    27

    The author of this article is an asshole!! Why the f**k is this article still online!?!?!

  19. HateVista
    August 14th, 2008 04:36
    26

    Thanks to Kyle, Hanoszi and abhishek, I just followed the latters post and it worked thank god,when I get the chance vista is coming off this laptop, for too intrusive, pervasive, controlling, I could go on and on

Pages: [2] 1 » Show All

Leave a Reply

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

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.
Custom Search

New Articles

Incoming Search Terms for the Article

Turn off DEP - turn off DEP vista - dep vista - Disable DEP Vista - disable dep - turn off DEP in vista - disable dep in vista - turn off data execution prevention - vista turn off DEP - DEP disable - enable dep vista - turning off dep - how to turn off dep vista - remove DEP - how to turn off dep - how to turn off dep in vista - bcdedit.exe /set {current} nx AlwaysOff - vista disable dep - DEP off vista - how to disable DEP in Vista - enable DEP in vista - disable vista dep - turn dep off - how to disable dep - Turn off DEP on Vista - vista dep off - Turn Off data execution prevention Vista - remove data execution prevention - windows vista dep - enable DEP - turn on dep vista - disabling DEP in Vista - vista dep - turn off vista dep - vista turn off data execution prevention - disable data execution prevention - vista dep disable - turn on DEP - Turn off DEP Windows 2003 - vista enable dep - bcdedit nx - turning off dep in vista - disable data execution prevention vista - stop data execution prevention - how to turn off data execution prevention - dep turn off - turning off dep vista - DEP in Vista - turn on dep in vista - data execution prevention turn off - Disable DEP on vista - Turn off DEP 2003 - disable dep 2003 - remove DEP Vista - turn dep off in vista - how to disable DEP vista - all - vista dep turn off - turn off DEP server 2003 - turn off dep windows vista - turn off data execution prevention in Vista - dep turn off vista - how to turn off DEP on vista - dep VISTA DISABLE - vista disable data execution prevention - how to stop data execution prevention - Turning DEP off - uninstall DATA EXECUTION PREVENTION - enable vista dep - dep off - turn off dep in windows vista - turn DEP off vista - turn of dep in vista - turn of dep vista - data execution prevention remove -