1

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.

Alex Blokha
  • 1,141
  • 2
  • 17
  • 30
  • Alex: this is way off topic and it might occur to you that since (a) everybody mentions boot.ini (b) this is a _core kernel_ facility you might simply need to do what you're finding? – sehe Oct 05 '11 at 12:26

3 Answers3

1

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

bootcfg /raw "/noexecute=alwaysoff"

Roman R.
  • 68,205
  • 6
  • 94
  • 158
  • It asks for ID parameter. And I need to pass ID of current running system. It will be sad to switch off DEP for neighbour system and not to switch off for current. – Alex Blokha Oct 05 '11 at 12:47
  • maybe you know how to figure out id? – Alex Blokha Oct 05 '11 at 13:26
  • Identifiers are 1, 2 etc, the whole configuration can be queried via `bootcfg /query`, but I don't think you can do everything in batch file (if you need it), as the data is formatted for interactive user. – Roman R. Oct 05 '11 at 13:42
0

run cmd as an admin and enter below in

bcdedit.exe /set {current} nx AlwaysOff

0

It's not commandline, but perhaps you can use

Win + Break, *A*dvanced, *P*erformance Options, Data Execution Prevention tab

where you can even manage DEP settings per application

sehe
  • 374,641
  • 47
  • 450
  • 633