Search code examples
command-linewindows-server-2003dep

Switch off DEP from command line in Win 2003


How can I switch off DEP from command line in Win 2003?

Or at least for Win XP.

A lot of forums explain how switch it off by editing boot.ini, but I need command line solution.


Solution

  • On Windows XP and Windows Server 2003 you might want to use BOOTCFG to disable DEP, see /noexecute on MSDN.

    bootcfg /raw "/noexecute=alwaysoff"