DEP invalid paramater


  1. Posts : 11
    Windows 7
       #1

    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 Computer


  2. Posts : 2,798
    Windows 7 x64, Vista x64, 8.1 smartphone
       #2

    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 Computer


  3. Posts : 11
    Windows 7
    Thread Starter
       #3

    thanks iko22 but safe boot disabled and elevated command prompt used and still same issue !
      My Computer


  4. Posts : 2,798
    Windows 7 x64, Vista x64, 8.1 smartphone
       #4

    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 Computer


  5. Posts : 11
    Windows 7
    Thread Starter
       #5

    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 Computer


  6. Posts : 2,798
    Windows 7 x64, Vista x64, 8.1 smartphone
       #6

    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 Computer


  7. Posts : 11
    Windows 7
    Thread Starter
       #7

    cmd.exe is used
      My Computer


  8. Posts : 2,798
    Windows 7 x64, Vista x64, 8.1 smartphone
       #8

    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 Computer


  9. Posts : 11
    Windows 7
    Thread Starter
       #9

    still the same... returns bad parameter
      My Computer


  10. Posts : 11
    Windows 7
    Thread Starter
       #10

    Is anybody else has a suggestion ?
      My Computer


 

  Related Discussions
Our Sites
Site Links
About 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 01:59.
Find Us