Check DEP Status:
wmic os get dataexecutionprevention_supportpolicy
Diasable DEP:
bcdedit.exe /set {current} nx AlwaysOff
Enable DEP:
bcdedit.exe /set {current} nx AlwaysOn
Check DEP Status:
wmic os get dataexecutionprevention_supportpolicy
Diasable DEP:
bcdedit.exe /set {current} nx AlwaysOff
Enable DEP:
bcdedit.exe /set {current} nx AlwaysOn