Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: DEP invalid paramater

3 Weeks Ago   #1
cobra02

Windows 7
 
 
DEP invalid paramater

I try to modify DEP settings for a x64 WIndows 7 Pro workstation with the following command
Code:
bcdedit.exe /set {current} nx AlwaysOn
But it fails : invalid parameter

The same command works perfectly on another machine

What's wrong ?

Thanks


My System SpecsSystem Spec
.
3 Weeks Ago   #2
iko22

Windows 7 x64, Vista x64, 8.1 smartphone
 
 

Hello cobra02,

Safe Boot needs to be disabled in BIOS (if applicable) and the command needs to be run from an elevated command prompt.
My System SpecsSystem Spec
3 Weeks Ago   #3
cobra02

Windows 7
 
 

thanks iko22 but safe boot disabled and elevated command prompt used and still same issue !
My System SpecsSystem Spec
.

2 Weeks Ago   #4
iko22

Windows 7 x64, Vista x64, 8.1 smartphone
 
 

Okay. The error means that the BCD store is unable to work with one or both command line arguments.

Try typing these three commands, and see if they are executed correctly:
1.
Code:
bcdedit /enum {current} /v
2.
Code:
wmic OS Get DataExecutionPrevention_SupportPolicy
3.
Code:
bcdedit.exe /set {current} nx OptIn
My System SpecsSystem Spec
2 Weeks Ago   #5
cobra02

Windows 7
 
 

So this is what I get:

Command 1:
Code:
  Chargeur de démarrage Windows
-----------------------------
identificateur          {c33452e9-6035-11e7-9590-e88ff9790913}
device                  partition=C:
path                    \windows\system32\winload.efi
description             Windows 7
locale                  fr-FR
inherit                 {6efb52bf-1766-41db-a6b3-0ee5eff72bd7}
recoverysequence        {c33452ea-6035-11e7-9590-e88ff9790913}
recoveryenabled         Yes
osdevice                partition=C:
systemroot              \windows
resumeobject            {c33452e8-6035-11e7-9590-e88ff9790913}
nx                      OptIn
ParamŠtre incorrect.
Command 2
Code:
DataExecutionPrevention_SupportPolicy  
1
Command 3
Code:
Paramètre incorrect.
My System SpecsSystem Spec
2 Weeks Ago   #6
iko22

Windows 7 x64, Vista x64, 8.1 smartphone
 
 

Are you using cmd.exe to type the command or are you typing the commands in PowerShell?

If you use PowerShell, the {current} GUID must be enclosed inbetween quotes, like this: "{current}".
My System SpecsSystem Spec
2 Weeks Ago   #7
cobra02

Windows 7
 
 

cmd.exe is used
My System SpecsSystem Spec
2 Weeks Ago   #8
iko22

Windows 7 x64, Vista x64, 8.1 smartphone
 
 

I have no more explanation to offer you. I am out of further suggestions.
Unless one thing is a problem. Is {current} recognised in your system locale (fr-FR)? Do both your computers have the same system locale?
You could try substituting {current} with the correct OS loader GUID Identifier. So, do the following commands succeed in their execution:
4.
Code:
bcdedit /enum {c33452e9-6035-11e7-9590-e88ff9790913} /v
5.
Code:
bcdedit.exe /set nx AlwaysOn
6.
Code:
bcdedit.exe /set {c33452e9-6035-11e7-9590-e88ff9790913} nx AlwaysOn
?
My System SpecsSystem Spec
2 Weeks Ago   #9
cobra02

Windows 7
 
 

still the same... returns bad parameter
My System SpecsSystem Spec
2 Weeks Ago   #10
cobra02

Windows 7
 
 

Is anybody else has a suggestion ?
My System SpecsSystem Spec
Reply

 DEP invalid paramater




Thread Tools




Similar help and support threads
Thread Forum
help please invalid ip
Ok so i have an HP touchsmart computer running windows 7 home premium 64bit and im in the army living in the barracks so my only internet source is a hotspot that they have set up for us in the barracks my problem is that when i try to connect to it it says "Wireless Network Connection dosnt...
Network & Sharing
Invalid certificate
When i try to access certain webpages on google chrome internet explorer or mozilla firefox and LOG IN to them sometimes i get a message saying INvalid certificate im trying to find out a way how to disable this thing and let it be ok with invalid certifcates please help this is the one thing i...
System Security
invalid boot.ini
Hi, I have windows xp pro x86, I just installed windows 7 ultimite x64 as a dual boot on the same partition. Win7 works great. when I boot up, if i choose xp, error says "windows will not start because system32/ntoskrnl.exe" "invalid boot.ini" "windows could not starte because the following...
Installation & Setup
Invalid product key
Hi all, well i have a problem here.. i just bought the Windows 7 Ultimate Upgrade 32-bits edition.. well everything went fine.. and when i was at the "Enter product key screen" the key that i am entering is INVALID???????????????? like wth.. i tried it for 30 minutes.. someone els...
Installation & Setup
Invalid IP Config + Invalid BOOT.INI = HELP!!
You can cut and paste the questions below on your New Thread to easily give the answers: Current Operating System, pre-install • Do you have a single OS on your computer, are you planning on multi-booting with this installation? Single OS (XP Pro SP3), and yes I want to dual boot. • Are you...
Installation & Setup


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 11:38.
Twitter Facebook