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

ยปยปDisable and Turn Off (or Enable or Turn On) Data Execution Prevention (DEP) in Windows
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 such as Windows 7, Windows 8, Windows 8.1 and Windows 10. 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 operating system. To stop the DEP protection, launch an elevated command prompt shell with administrative privileges and credentials (log on to Windows with a user account with administrator rights, and then right click on Command Prompt (cmd) icon and select Run as Administrator, or turn off UAC), or through WinX Power Users menu for Windows 8 or later OS. 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, simply use the following command instead:

bcdedit.exe /set {current} nx OptIn

Or (above is the default setting on Windows, and below command will apply DEP to all processes):

bcdedit.exe /set {current} nx AlwaysOn

How to Verify the Status of DEP

Run the Command Prompt as Administrator, the run the following command:

wmic OS Get DataExecutionPrevention_SupportPolicy

A status code will be returned. The status of the DEP is corresponding with the code listed in table below:

Code NumberFlagStatus
AlwaysOffDEP is disabled for all processes.
1AlwaysOnDEP is enabled for all processes.
2OptInDEP is enabled for essentials Windows programs and services only. Default setting.
3OptOutDEP is enabled for all processes except for excluded programs and services.

By | 2016-12-09T08:40:40+00:00 December 9th, 2016|Categories: Security|Tags: , , , , , |103 Comments

About the Author:

LK is a technology writer for Tech Journey with background of system and network administrator. He has be documenting his experiences in digital and technology world for over 15 years.Connect with LK through Tech Journey on Facebook, Twitter or Google+.
  • kyle

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

  • Hobbit

    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!

  • kyle

    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

  • benjamin

    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.

  • ella

    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

  • purkiss

    thx kyle for that tip.

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

  • digital life my ass

    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.

  • admin

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

  • yezzir

    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.

  • Jamie


    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!

  • Hanoszi

    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

  • j

    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!

  • abhishek

    this works.

    bcdedit.exe /set {current} nx optin

    i got back my dep options. thanks kyle

  • Jary

    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


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

  • elie

    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

  • HowToFixDEP

    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

  • JC

    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!

  • ms

    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:


    MicroSoft's solution (DEP) is worse than the problem…what good is DEP if it crashes legitimate programs?

  • cheryl

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

  • cheryl

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

  • koss angel

    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…

  • JC

    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.

  • Patrick

    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!

  • nadine

    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

  • HateVista

    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

  • Jon

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

  • extinction

    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.

  • Hydrazine

    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.

  • Mutton



    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.


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


    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.


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


    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.

  • Thanks that I found this post, now i can disable the UAC warning balloon permanently. ๐Ÿ™‚

  • Mitch

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

    Windows is epic fail

  • Mitch

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


  • Mitch

    And yet it does not work… ๐Ÿ˜

  • jordan

    bcdedit /set nx alwaysoff

    that worked for me.

  • John

    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.

  • mitch

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

  • Anon

    Required restart to work for me. FYI

  • Works on Windows Server 2008 Enterprise ?

  • It works ! Tnx very much ๐Ÿ˜€

  • fyza

    i need a help….

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

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

  • Lokisana

    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.

  • Adam

    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.

  • james

    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.

  • Person 222

    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?


  • john

    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

  • clyde_2687

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

  • Paul


  • Emma

    were is this command prompt etc

  • Emma

    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

  • jamal

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

  • avataratx

    it does not work

  • Adrian

    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

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

  • DEP = this article =


  • DEP = this article =


  • Rob

    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:WindowsSystem32.

    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.

  • The Shadow

    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.

  • Hello there.

    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.

    • james

      what or where do i right click to Run as administrator? I’ve right clicked everywhere and do not get the option to “Run as administrator”.

  • honorable1nut

    worked perfectly in my copy of Windows 7.

    piece of cake to for all you dip sticks that AREN'T following the instructions.

  • Ian

    The advice given in this article is stupid and dangerous – if one application doesn't play nice, you don't throw the security baby out with the bathwater by setting nx to AlwaysOff. Best practice is to set nx to OptOut – this leaves DEP working by default for all processes apart from those on the exemption list under Computer|Properties|Advanced System Settings|Advanced|Performance|Data Execution Prevention. All you've got to do is add your badly behaving baby to this list and you haven't exposed your entire system to the types of vulnerabilities DEP prevents.

  • ripprasternode

    The advice given in this article is PERFECT.

    Does exactly what it claims.



  • Cody Lee

    so it wont let me make an exception for my game planet shift.I turned it off and it works but i dont want to leave it off, could som1 tell me y it wont let me make an exception and how to force it to. It tells me pslaunch must run with des enabled

  • zuhair

    i dont understand wen u said i have to log on to vista how do i do that

  • zuhair

    what is the command propmt icon can someone tell me plzzzzzzzzzzzzzzzzzzzzzzz

  • John

    I've an Inspiron 1545 notebook and experienced the same problem, which NOT affects x64 and IA64-based OSes.

    Disabling DEP on a x86-based Windows machine may cause the system to fail.

    Both Dell and M$ didn't provide a fix for this issue at the time, though I'm expecting for a workaround which definitely prevents any x86-based Windows OS to crash after turning off the DEP feature.

  • Hugo

    I had big problems with a super-secure site: As soon as I logged in, IE8 was closed by DEP.

    I had tried all the correcting procedures described by Microsoft, to no avail. But when I tried your advice, IT WORKED!

    Thanks a lot!!

    May I confess that I was disappointed at the beginning, because nothing happened. I didn't know that a reboot was required for the changes to take effect. It was only after that that it worked. My feelings were the same as those of Adrian (#58 & 59), whom I read only after completion of the changes. May be you should add that vital final step, which laymen like me may not be aware of.

  • dissapointed

    doesnt work on vista home premium. /set is an unknown command

    • Caleb

      It worked for me, and I have Vista Home Premium. Make sure you typed it all in word for word correctly. For example, there's no space between AlwaysOff.

  • denis

    please remove this dep from my computer

  • nikhil

    i wanted to access in windows 7

    which was not working

    and ran this command

    bcdedit.exe /set {current} nx AlwaysOff

    and it worked

  • David

    I wanted to install Ragnarok online, but the program kept immediately shutting down, it alsos made me constantly crash on some games (Dead Space 2, which i couldn't finish because of this shit). Thanks to you, i turned off this pure DEP shit and now everything's workin, so all this to say thank you ๐Ÿ™‚

  • counterstrikesource

    hey, this sucks balls

    I typed bcdedit /set {current} nx AlwaysOn (btw I memeorized this i'm so excited)

    and it said succesfully done, after restarting my computer the game still crashes

    • Hall

      @counterstrikesource player:

      You have to type "Always OFFFFFFFFF" not ON!

  • Ron

    A few Vital things this article fails to mention which may save someone the time spent and horror experienced when I thought I could not Fix this

    DEP has 4 Modes (Admin can set them using Command Promt as Administrator)

    "bcdedit.exe /set {current} nx AlwaysOff" will set DEP to Mode 0

    DEP is Completely off, your computer is vulnerable and you cannot modify the DEP from your windows system settings as all of the options will be grayed out and the message at the bottom will tell you to use bcdedit.exe as Admin

    "bcdedit.exe /set {current} nx AlwaysOn" will set DEP to Mode 1

    DEP is Technically On, but you still cannot modify the DEP from your windows system settings as all of the options will be grayed out and the message at the bottom will tell you to use bcdedit.exe as Admin

    "bcdedit.exe /set {current} nx OptIn" will set DEP to Mode 2

    DEP is On and the DEP from your windows system settings as all of the options will be Set to Windows Programs Only (You can change this from the DEP window as normal)

    "bcdedit.exe /set {current} nx OptOut" will set DEP to Mode 3

    DEP is On and the DEP from your windows system settings as all of the options will be Set to All Programs except those that I Specify (You can change this from the DEP window as normal)

    If you are in the Command Prompt as Administrator the command

    wmic OS Get DataExecutionPrevention_SupportPolicy will display a value from 0-3 Indicating the current DEP Mode

    HERE'S THE KICKER that most DEP tutorials seem to leave out:

    If you're using a 64-bit versdion of windows the "bcdedit.exe /set {current} nx OptIn" command will work by default

    If you're using 32-bit Windows you must use:

    "bcdedit.exe /set {current} nx AlwaysOn" (Mode 1)

    AND THEN use "bcdedit.exe /set {current} nx OptIn" (Mode 2) in order to get your windows DEP settings to work again (not grayed out)

    • Upset

      Hi Sir,

      So my computer the 64-bit version. DEP keeps on closing my game when I run it and it upsets me a lot. ๐Ÿ™ I tried the bcdedit.exe /set {current} nx AlwaysOff but it still closed it. How now?

    • Ben

      Hey data execution prevention keeps closing a lot of programs that were previously fine. I've used Malwarebytes, Norton 360 and Spybot S&D to scan for any infections and none of them found anything. So using the command prompt as an administrator I used the command:

      "wmic OS Get DataExecutionPrevention_SupportPolicy"

      The policy was set to 1. I then used the command:

      “bcdedit.exe /set {current} nx AlwaysOff”

      It said the operation completed successfully. However when I then used the get support policy command again it still said it was set to 1 after i had used the always off command.

      Am I doing something wrong?

      • Ben

        solved it forgot to reboot between commands duuuuuuuuuh -_____-

    • V3N0M

      Maaaaaaaan thanks , so many thanks !

  • stupid microsoft

    So this crap feature has been imposed on us with service pack 2 for XP. I turned it off in boot.ini but it is still running…(not running but the dialog shows up when I click on exe files) It takes 30 seconds to 1 minute to bring up that dialog so I can click run sometimes locking up my computer in the meantime. TOTAL CRAP!!!!!!!! This computer is ridiculously fast and with a brand new install of xp and nothing else installed or running (all unessentials killed in msconfig). How do I permanently kill this stupid "protection feature" permanently and immediately.

  • Alex

    WARNING – Disabling DEP per the above can permanently blue screen your Vista laptop. It caused my Dell Studio 1535 to blue screen on boot, even in safe mode. I had to use the Vista recovery disk to rebuild my BCD from the command line to fix it.

    If you want to try it and you're on a Vista laptop, I would print out the following KB on how to rebuild your BCD first, just in case your comp gets perma-blue screened too: http://support.microsoft.com/kb/927392

    • Hoeu

      Just wanted to say thank you. I got exactly what you mentioned in the forum and tried everything possible to get my Dell XPS M1530 to boot with no success. I was about to completely reinstall Vista until I came across your post. I followed the supplied link and and completely rebuilt the MCB as mentioned. It worked and now my Laptop is back to normal!! The only downside is now I have no excuse for my wife to get a new laptop ๐Ÿ˜‰

    • Hoeu

      Correction to my reply, I meant BCD, not MCB ๐Ÿ˜›

    • rws70

      Found this fix which worked so I did not have to use your BCD solution, but thanks because that put me on the trail to find this fix:

      In case turning off DEP causes your computer to bluescreen (as it did mine), there’s a way to get it back:

      – Perform a system repair using a system repair disk.
      – Open up command prompt inside the repair (There’ll be an option under advanced options)
      – You’ll be in “X:/” instead of “C:/”
      – type (without quotations) “CD Windows/system32”
      – type (without quotations) “bcdedit.exe /set {default} nx OptIn”

      (note spaces show with underscore bcdedit.exe_/set_{default}_nx_Optin … do not type it in with the underscores … just showing you where the spaces go)

      • unam_sanctum

        I just did this and it worked for me. Thank you so much. I’m going to leave DEP on from now on. This worked for me to fix the BSOD. Dell Inspiron 1525 VIsta 32.

  • fred


    Secure changes, do this :

    Duplicate command, which displays the menu on startup (30 seconds please) and which can also have different options to launch the same Windows installation. Remember to change the title displayed.

    I let the author of this blog to explain the options bcdedit.exe.

    You can also use NeoSmart Technologies EasyBCD (2.1).

    thank you.

    • fred

      re hello,


      You can copy your existing VISTA or Windows 7 boot entry to another identical. Then you can change settings on the new entry to experiment. You will always have the first entry available, so it’s safe to play with.

      bcdedit /copy {current} /d “Windows 7 (Copy item + Option nx AlwaysOff !)”

      This command will give you a line :

      The entry was successfully copied to {12345678-1234-1234-1234-123456789012}.

      The {12345678-1234-1234-1234-123456789012} is the UUID of the new entry that the system just created. Yours will be different than mine here !

      The UUID is its identifier and you should use this to address the good entry.


      Practical example :

      bcdedit /set {12345678-1234-1234-1234-123456789012} nx AlwaysOff

      Thanks :-)) !

  • Dhurgan

    Thanks for this
    The thread with experiences helped sort this out
    new commands to study ๐Ÿ˜€

    bcdedit /set nx AlwaysOff = (mode 0)
    bcdedit /set nx AlwaysOn = (mode 1)
    bcdedit /set nx OptIn = (mode 2)
    bcdedit /set nx OptOut = (mode 3)

    wmic OS Get DataExecutionPrevention_SupportPolicy
    returns current level

    Dont forget to reboot after a bcdedit change for it to take effect ๐Ÿ˜€


  • noname

    wooow thanx guys for this!!!!!!!!!!!!, i had just bought a new notebook for $849 and every time when i wanted tot start windows explorer it gave an error message. but when i typed this: bcdedit.exe /set {current} nx AlwaysOff in cmd with admin rights. and restart my computer, it runned normally like it used to be!!!!!!! my computer is not vista but windows 7 but it worked! thank you soo much!! excuse me for my bad english i’m dutch:D

  • Gaurav

    F*** YOU Microsoft for building such a SHIT-HOLE of a software– DEP —
    unfortunately none of the above worked for me but thanks you all anyways….

    • stupidmicrosoft

      I FEEL YOU MAN! AND SHARE THOSE EXACT WORDS, fucking idiots microsoft, I refuse to reinstall windows since then I would have 3 weeks of work to get all programs running back. Is there an update with this DERP shit I can just remove?

    • Ultra wi fi


  • Wanda

    This is a great function if you have a hacker constantly looking for ways to get at you. One chance and they turn it off … screen went blue. I did not know it was because they had disabled DEP. I did see many issues with Internet Explorer so I ran the Microsoft Fix It performance utility and it told me that DEP was disabled, but now fixed. Each time I ran the FixIt utility it said the same thing. I ran the command prompt and was finally able to access my web mail, etc. that for some reason previous to running the command, I was not able to access. While some people may not like it, it is a necessary option because of unscrupulous people.

  • mckolios

    well.. i ran the commant, DEP turned off but still the program is closed every time i try. so, i tried to reactivate DEP by the command, the terminal says “succesful etc” but DEP is still inactive. any solution?

    • King GeneraL

      reboot your computer will solve that problems

  • mckolios

    i figured out a by a comment below. thank you for your help

  • ok ok

  • insane

    DEP made my life hell bloody Microsoft what were they thinking DEP it,s totally blocked windows installer

    • King GeneraL

      same with me, but im just experiencing this issue after entering win8.1

  • mofeta adasdas

    holy shit, this has to be the most infuriating feature ive seen. Not only doesnt do shit, but i cant play games because of it. Ive tried absolutely everything to turn it off, or at least put in safelist some programs, but there is no good. Cant safelist because everything is gray, and even though im opening CMD as admin, and getting a “operation successful” message, its still on (mode1)

    • King GeneraL

      See my comment sir

  • King GeneraL

    Follow my solve bellow : (DEP solved)
    First you need to disable the DEP, enter cmd as administrator (right click , run as administrator)
    type “bcdedit.exe /set nx AlwaysOff”

    Ok now, is that work ?
    Most say yes, but some say NO
    Dont worry !!

    Next, install your graphic driver (for me :nvdia is my VGA card) so i install my nvdia.
    After that you must restart your PC

    The last step :
    Open your graphic card setting , choose your graphic card, then apply.
    (Me : open NVDIA control panel, set NVDIA for physx configuration and 3d settings)

    Thats all (hope this solve yours)
    (Thumb me up if this help you)