How to disable DEP (Data Execution Prevention) in Windows 7
December 14, 2011To disable DEP in Windows Vista or Windows 7 open Powershell or a command prompt in Administrator mode.
bcdedit /set nx AlwaysOff = (mode 0) bcdedit /set nx AlwaysOn = (mode 1) bcdedit /set nx OptIn = (mode 2) bcdedit /set nx OptOut = (mode 3)
After that a reboot is required for this setting to become effective!
Using WMIthe current state of the setting can be retrieved. Just use following command again in Powershell or command prompt.
wmic OS Get DataExecutionPrevention_SupportPolicy