Command Line
Disable DEP
bcdedit.exe/set {current} nx AlwaysOff
<reboot>
Enable DEP
Enable DEP bcdedit.exe/set {current} nx AlwaysOn
<reboot>
GUI
Control Panel\All Control Panel Items\System –> Advanced system properties –> Performance | Settings… –> Data Execution Prevention
<reboot>