How to turn off DEP in Windows Open a Command Prompt as an Administrator. Type: bcdedit.exe /set {current} nx AlwaysOff and press Enter. Restart the computer.