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

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

Pages: 1 2 3

  1. Hello there.
    February 6th, 2010 01:25
    64

    To all the people who cant get it to work, You’re probably running command prompt as yourself. You must right click and click “Run as administrator” Even if you are on the admin file it wont work unless you do that.

  2. The Shadow
    January 6th, 2010 15:19
    63

    I disabled it for a game. It does not work well anyway. I have tried twice (& restarted twice) to turn it back on and it won’t.

  3. Rob
    January 6th, 2010 13:42
    62

    Worked perfectly for me.
    For those who it failed for, be sure to right-click RUN AS ADMINISTRATOR when you open the command prompt. If you do this successfully the title bar should say Administrator, also the path should be C:\Windows\System32.

    NB Being logged in as an Administrator is not the same thing. And it will still say ‘the command executed successfully’ even when it hasn’t. You must run the command prompt in the elevated environment.

  4. DEP = this article = shit
    December 30th, 2009 05:56
    61

    DONT WASTE YOUR TIME WITH THIS SHIT, IT DOESNT WORK AT ALL

  5. DEP = this article = shit
    December 30th, 2009 05:55
    60

    DON’T WASTE YOUR TIME WITH THIS SHIT, IT DOESN’T WORK AT ALL

  6. Adrian
    December 19th, 2009 17:12
    59

    Well – the VITAL final part of the exercise … is the REBOOT. Then it takes effect!

  7. Adrian
    December 19th, 2009 14:18
    58

    I am afraid that switch does not work. The command instruction executed successfully, but when I then used your tip to check the settings – nothing had changed.

    I need to turn this damned thing off as it constantly causes all my 4 browsers to crash.I have an image file of my C: partition to rstore if need be.

    Adrian

  8. avataratx
    November 28th, 2009 12:44
    57

    it does not work

  9. jamal
    November 6th, 2009 01:53
    56

    omg i followed your instructions and it didnt work, then i found out how to do it the normal way through selecting certain programs for DEP to ignor but it wont let me put a check on either box and i think its becuase of the command prompt. i tried to set it back on again and it said it couldnt do it acces deinied or something. HELP!!

  10. Emma
    November 5th, 2009 04:50
    55

    its still not letting me publish i have got to the part of pasting – bcdedit.exe /set {current} nx AlwaysOff – in but were do i go from there? there isnt anything saying update or whatever

  11. Emma
    November 5th, 2009 04:45
    54

    were is this command prompt etc

  12. Fix Windows 7 Does Not Start or Fails to Boot After Force Shutdown » My Digital Life
    October 15th, 2009 15:25
    53

    [...] Data Execution Prevention (DEP) is disabled either in the BIOS or in the operating system. [...]

  13. Paul
    October 15th, 2009 05:22
    52

    DUDE YOU ARE AWSOME THANKS SOOOO SOOOO MUCH

  14. clyde_2687
    October 2nd, 2009 17:24
    51

    wow! thanks! it actually worked for me Vista Ultimate! Now, i can play Starcraft again! LOL

Pages: 1 2 3

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 My Digital Life Comments RSS feed to receive notification of latest comments posted.

New Articles

Incoming Search Terms for the Article

turn off DEP vista - how to turn off dep in vista - data execution prevention vista - turn off DEP - disable dep vista - bcdedit.exe /set {current} nx AlwaysOff - turn off DEP in vista - turn off data execution prevention vista - vista turn off DeP - data execution prevention turn off - Disabling DEP vista - disable DEP - disable dep windows 7 - turn dep off - disable dep server 2008 - how to disable dep in vista - turn on dep - turn dep off vista - turn off DEP Windows 7 - windows 7 disable DEP - turn off data execution prevention - turn off DEP server 2008 - How to turn off DEP - how to turn off data execution prevention vista - how to stop data execution prevention - data execution prevention disable - how to disable dep - remove dep - turning off dep vista - vista dep disable - bcdedit.exe set current nx alwaysoff - disable dep windows 2008 - how to turn off dep vista - how do i turn off dep in vista - how to turn dep off vista - turning off DEP - disable dep in windows 7 - DEP windows 2008 - Disable DEP in vista - how to turn on dep - dep disable - vista disable dep - disable data execution prevention vista - How to turn off data execution prevention - how do i turn off data execution prevention vista - windows 7 turn off dep - dep windows vista - enable dep - how to turn off data execution prevention on vista - turn dep off windows 7 - bcdedit nx - how to turn dep off in vista - Remove Data Execution Prevention - turning dep off in vista - vista turn off data execution prevention - windows 7 dep disable - Data Execution Prevention vista turn off - dep always off - windows 2008 dep - data execution prevention server 2008 - vista data execution prevention - DEP turn off vista - disabling DEP in vista - how to turn dep off - how to enable dep in vista - how to remove DEP - how to disable data execution prevention in vista - turn of dep vista - turning off data execution prevention in vista - turn off DEP in Windows 7 - vista dep off - dep vista - how to disable dep vista - how to turn dep on - what is data execution prevention in vista -