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


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

Pages: « 3 2 [1] Show All

  1. nadine
    August 7th, 2008 09:18
    25

    im unabashedly nothing like as computer savvy as some people and i was stupid enough to try this command without first reading the comments

    luckily for me my computer simply didn’t recognise it as a command but just in case i tried the other one too,which it didnt recognise either

    either way it made fuck all difference, i still cant run windows movie maker, a bitch for me since im an amateur film maker and wmm is the only programme i can currently afford.

    Only i cant open it

    so im fucked till i can afford a new editing programme

    It also messes up (DEP that is) my windows dvd creator

    Its frustrating as all hell.
    SO far, nothing i’ve tried has worked.

    I can only hope an official solution will become available in the future and until then i’ll fight the urge to throw my laptop out of a window

  2. Patrick
    August 4th, 2008 21:54
    24

    I don’t care if this fix wrecks my machine or not (though I’m fairly confident it won’t.)

    My DEP has been stalwart in closing IE8 and the new Rhapsody and it has taken me weeks to finally get them to function.

    Thanks very much for the help!

  3. JC
    July 13th, 2008 07:09
    23

    I agree (more or less) with Koss – if you’re system went down because you turned off DEP, then something is either wrong with your computer, or something is wrong with you.

    More than likely, if you built your own computer system or you mod them, then you probablly had enough technical know-how to execute this fix without failure.

    If you bought your Dell, Hewlett Crapard, Acer, or other name-brander at that the sleazy Wall-E World, then you probablly shouldn’t have tried this fix till you did a little reading up on it.

  4. koss angel
    July 12th, 2008 13:54
    22

    to the author.. thanks.. fixed my FF3 random crashes..

    ~to everyone who failed~:

    wow… for all you people who ‘ruined’ your computers and are here bitching.. you must be absolute fucking idiots for not having enough sense to realize you have 0 technical capacity and should perhaps seek the assistance of someone with a clue…

    how the hell can you go wrong and ‘ruin’ your system with this command? such accomplishments must require unheard of levels of stupidity…

  5. cheryl
    June 24th, 2008 11:17
    21

    Kyle, you are god, thank you. That fixed it.

  6. cheryl
    June 24th, 2008 11:06
    20

    Oh yeah, bad idea!!! Do not run this command in Vista, kills system. I’m sitting here watching startup repair. YOU SUCK.

  7. ms
    June 5th, 2008 04:50
    19

    DEP crashed my Adobe Acrobat 8 every time I tried to do a Twain (i.e., non-WIA) scan…
    After trying everything else, Adobe Support referred me to this page as a workaround to the problem.
    While the explanation in the article of how to turn it off is not the clearest, I turned off the crap DEP protection, and guess what:
    MY ADOBE ACROBAT 8 NOW WORKS!!!
    MicroSoft’s solution (DEP) is worse than the problem…what good is DEP if it crashes legitimate programs?

  8. JC
    June 2nd, 2008 08:48
    18

    Data Execution Prevention is crap – another way for someone else to exercise control over MY computer. Sure, there are malicious programs, trojans, and viri out there that could be prevented by DEP. However, it seems that the problems of having it on far outweigh the benfits.

    One of the reasons I turned DEP off was that it killed Windows Movie Maker, Windows DVD Maker, and every other video program I had on my computer, not to mention that every time I tried to look at a folder that contained .AVI files, it would crash Windows Explorer. Also, lets not get me started on the damn COM SURROGATE errors…

    Anyway, I lived without this little “darling” piece of Windows Code for ten years before Windows Vista came along, and if it’s going to keep on being a problem, i’ll live another ten without it!

  9. Giving up on FF3b5 | Ugh!!'s Greymatter Honeypot
    May 9th, 2008 18:08
    17

    [...] Prevention issue with it. This morning I just get getting DEP errors every time I ran it. I could turn DEP off, but I’m not comfortable doing that for this reason, because of the previous crashes that [...]

  10. HowToFixDEP
    April 21st, 2008 07:53
    16

    to reverse the problem get to a command prompt (use the windows boot disk if you have to to start recovery options) then do this

    bcdedit.exe /set {default} nx AlwaysOn

    beacuse once your in the recovery mode its not “current” its default you can verify its on before rebooting by typing

    bcdedit.exe it will show
    nx AlwaysOn

    this will allow your computer to boot normally and then once back in windows do

    bcdedit.exe /set {current} nx OptIn

    to give you back your DEP options (aka remove the greyed out)

    I hope this helps

  11. elie
    March 21st, 2008 23:20
    15

    nothing from the above is working my pc is fuckup and all myb work and drawing is inside
    i loset a lot of work from stupid DEP shit

    how to take if off pleaaaseeeeee
    i am loosing big money and time from it

  12. Jary
    March 18th, 2008 12:09
    14

    If you hav an Acer computer using the eDataSecurity Management there is an update that fixes this, there is something with the Messenger Live encryption that the DEP picks up on and that is why it closes it. The update can be found here: http://www.acerpanam.com/synapse/forms/portal20.cfm?recordid=1130&formid=3390&website=AcerPanAm.com/canada&siteid=7297&words=all&keywords=&areaid=17

    PLEASE FOLLOW THE INSTRUCTIONS!!!!!!

    It did work for me. Hope that is works for you

  13. abhishek
    February 28th, 2008 14:52
    13

    this works.
    bcdedit.exe /set {current} nx optin

    i got back my dep options. thanks kyle

  14. j
    January 15th, 2008 02:36
    12

    Caution: Following these instructions also messed up my system, no programs would launch. It may be something about my system, but Kyle’s ‘OptIn’ solution also did not work to fix this for me.

    The only thing that could solve my problems was to do a full system restore. I would discourage anyone from following these instructions at all.

    Try at own risk!

  15. Hanoszi
    January 13th, 2008 04:28
    11

    All what you have to do to TURN ON your DEP after all is type bcdedit.exe /set {current} nx OptIn
    It is very importing to type exacly this words even with big and samall letters. Afer that you can type bcdedit.exe /set {current} nx AlwaysOn

  16. Jamie
    January 1st, 2008 03:15
    10

    THIS ARTCILE IS WRONG WILL MESS UP YOUR COMPUTER.

    Can I just say the Kyle is a legend. I thought that I was going to have to take my computer to the scrapheap as nothing was working. I did what he said and everythings back to normal. I owe you big time mate! And as for the guy that wrote the article – well words that nasty refuse to come out my mouth!
    Dont make the same mistake as I did and spend half of new years eve begging your computer to go back to normal!

  17. yezzir
    November 14th, 2007 08:41
    9

    This guy is an asshole. I’m definitely not taking any advice from anyone without looking at the comments now.

    Thank god for system restore though, haha.

  18. admin
    November 13th, 2007 00:46
    8

    Hi sorry for any error. You can turn DEP back on to solve the issue.

  19. digital life my ass
    November 13th, 2007 00:38
    7

    Yeah, screwed up my system too. Thanks to kyle it’s working again. Next time I’ll read the comments first before trusting some shitty advise of an unknown website.

  20. purkiss
    October 25th, 2007 00:49
    6

    thx kyle for that tip.

    Do not disable DEP as described in this article. It does not work and will drive you crazy.

  21. ella
    September 28th, 2007 22:28
    5

    hi! can you help me. i can’t download ym. this was the message that prompted after i click run.

    Data Execution Prevention

    A windows security settings has detected a problem and closed this program

    Name: Yahoo! suite installer.

    how can i download ym..pls. help. thank

  22. benjamin
    August 16th, 2007 22:24
    4

    After enabling AlwaysOn DEP I started getting errors when launching Firefox. I’m not certain if it was caused by a recent update or one of my Add-Ins. I’m going to need to do a complete uninstall and try again.

    Besides that, however, I haven’t run into any other issues in any of my programs.

    The individuals above that were having issues with Explorer crashing were probably using wonky third party shell extensions.

    Their experiences show just why you should never let things integrate with your shell.

  23. kyle
    June 7th, 2007 14:16
    3

    i have found a fix for the above problems you type in the cmd prompt the original line to turn the dep back on but you also type in
    bcdedit.exe /set {current} nx optin and that will turn the dep options back on but once again thanks for nothing ower of the site that doesnt respond to any posts thats is rediculous

  24. Hobbit
    June 3rd, 2007 12:11
    2

    Same problem as above poster. DEP off did a number on my system. Explorer no longer works. ICQ no longer works. Cannot turn DEP back on with the command. It says it is successful but after a reboot it is still off. So far I am unable to fix this issue and likely will have to redo my entire system to fix it. DO NOT DO THIS IT WILL FUCK UP YOUR PC!

  25. kyle
    May 23rd, 2007 08:28
    1

    BIG PROBLEMS i did like you explained and installed a new game and the DEP prevented it from running so i went to add the program to the list and its all grayed out cant select anything. so i turned it back on and restarted and the DEP is still grayed out. so i tried to restore back to before i changed the DEP and the DEP is still the same!???

Pages: « 3 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 vista - turn off dep - how to turn off DEP in vista - how to turn off dep - data execution prevention disable - disable dep vista - data execution prevention turn off - turn off Data Execution Prevention - disable dep - turn off dep in vista - how to turn off data execution prevention - bcdedit.exe /set {current} nx AlwaysOff - disable Data Execution Prevention - turn off data execution prevention vista - vista turn off dep - data execution prevention vista - dep disable - disable DEP windows 7 - turn DEP off - how to turn off Data Execution Prevention vista - turn on dep - how to turn off dep vista - turn off DEP windows 7 - turn dep off vista - how to disable dep vista - turning off dep - how to disable dep in vista - how to disable data execution prevention - turning off dep vista - vista disable dep - remove data execution prevention - dep turn off - disable dep server 2008 - how to remove data execution prevention - windows data execution prevention disable - bcdedit.exe set current nx alwaysoff - how do i turn off dep in vista - windows 7 disable dep - disable data execution prevention vista - turn of dep - how to stop data execution prevention - remove Dep - dep vista off - stop data execution prevention - windows vista DEP - disable DEP windows 2008 - DEP windows vista - how to turn off DEP on vista - how to disable dep - How to turn on DEP -