Skip to content

Instantly share code, notes, and snippets.

@vunb
Created February 14, 2014 08:55
Show Gist options
  • Select an option

  • Save vunb/8997876 to your computer and use it in GitHub Desktop.

Select an option

Save vunb/8997876 to your computer and use it in GitHub Desktop.
Turn on or off DEP or Data Execution Prevention
Here is a very simple way to turn off DEP
- Go to START
- Type in CMD but do NOT press enter.
- Right click the CMD.exe icon and run as Administrator - verify your command prompt says Windows\System32>
- Enter this command exactly as shown
bcdedit.exe /set {current} nx AlwaysOff
- You must restart your computer for this to take effect
NOTE* In some occasions you must turn off UAC (User Account Control)
Let's say that for any reason you're ready to turn DEP back on , ok no problem. Same steps but type this-
bcdedit.exe /set {current} nx AlwaysOn
- Once again restart for this to take effect.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment