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


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

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

    it does not work

  2. 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!!

  3. 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

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

    were is this command prompt etc

  5. 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. [...]

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

    DUDE YOU ARE AWSOME THANKS SOOOO SOOOO MUCH

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

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

  8. john
    September 28th, 2009 05:13
    50

    I followed the posted instructions and it was successful and it also crash my lap top. I am unable to restart windows because of a hardware or software change. DO NOT FOLLOW THESE INSTRUCTIONS I HAD TO PAY DELL TO FIX THIS ERROR SINCE IM NOT UNDER WARRANTY. THANKS A LOT FOR THE $49 BAD INFORMATION

  9. Person 222
    September 15th, 2009 21:07
    49

    When I try do this i type everything in but it just comes back and tells me that it has an unknown command “bcdedit” Please Help!
    Also I was not sure if there must be spaces in between each word or not?

    Thanks!

  10. james
    August 19th, 2009 05:57
    48

    um no difference… do i have to restart or something? i cant access my graphics card because DEP blocks it from running. its driving me nuts cus i was using my computer as a dvd player as well.

  11. How to Enable or Disable DEP for Office Applications » My Digital Life
    August 17th, 2009 01:09
    47

    [...] process. To fix problem arising from DEP protection when executing a software program, user can turn off and disable DEP globally, turn off or disable DEP entirely for all non-essential Windows programs and services (default for [...]

  12. Adam
    July 23rd, 2009 22:11
    46

    VISTA XPS M1530.
    These instructions destroy boot-up. Blue Screen of Death…Using Repair boot > Advanced > Command Prompt > the command line to edit bcdedit.exe back to AlwaysOn does not work. This is a totally misleading and damaging article. Big bowl of wrong.

  13. Lokisana
    July 13th, 2009 02:36
    45

    This didn’t work for me either, so I just ran a search on the bcdedit and opened the file’s location. Then I deleted it.

  14. 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??

  15. 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…

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

    It works ! Tnx very much :D

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

    Works on Windows Server 2008 Enterprise ?

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

    Required restart to work for me. FYI

  19. 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 [...]

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

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

  21. 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.

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

    bcdedit /set nx alwaysoff

    that worked for me.

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

    And yet it does not work… :|

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

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

    –Drei

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

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

    Windows is epic fail

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

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

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

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

  28. 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.

  29. 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.

  30. 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.

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

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

  32. 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

  33. 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

  34. 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!

  35. 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.

  36. 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…

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

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

  38. 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.

  39. 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?

  40. 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!

  41. 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 [...]

  42. 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

  43. 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

  44. 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

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

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

    i got back my dep options. thanks kyle

  46. 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!

  47. 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

  48. 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!

  49. 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.

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

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

  51. 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.

  52. 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.

  53. 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

  54. 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.

  55. 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

  56. 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!

  57. 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!???

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 - how to turn off dep in vista - data execution prevention vista - disable dep vista - turn off DEP - bcdedit.exe /set {current} nx AlwaysOff - turn off data execution prevention vista - Disabling DEP vista - disable dep windows 7 - turn dep off vista - vista turn off DeP - disable DEP - turn off data execution prevention - vista dep disable - data execution prevention turn off - disable dep server 2008 - turn off DEP Windows 7 - windows 7 disable DEP - how to disable dep in vista - turn off DEP server 2008 - turning off DEP - vista disable dep - how to disable dep - how to turn off data execution prevention vista - how do i turn off dep in vista - How to turn off DEP - turning off dep vista - turn on dep - turn off DEP in vista - turn dep off - Disable DEP in vista - disable data execution prevention vista - disable dep windows 2008 - How to turn off data execution prevention - how to stop data execution prevention - How do I turn off the data execution prevention in vista - Remove Data Execution Prevention - remove dep - bcdedit.exe set current nx alwaysoff - vista turn off data execution prevention - windows 2008 dep - how to turn on bcdedit.exe - data execution prevention disable - how to turn off dep vista - how do i turn off data execution prevention vista - how to shut off dep - macam turn off windows Vista - turn of dep vista - turning dep off in vista - turn off windows vista dep -