How to fix "ERROR: The system was unable to find the specified registry key or value." when running a batch file

16,519

You're not deleting a registry key named:

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Cryptography\Configuration\SSL\00010002\Functions

You're deleting a registry value, named: Functions which exists under the key named HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Cryptography\Configuration\SSL\00010002.

To perform the task you therefore need to use the correct syntax:

Reg Delete "HKLM\SOFTWARE\Policies\Microsoft\Cryptography\Configuration\SSL\00010002" /V "Functions" /F > NUL

You would also need to run the script 'as Administrator', to prevent an Access is denied message.

Share:
16,519

Related videos on Youtube

Falcon4ch
Author by

Falcon4ch

Updated on June 04, 2022

Comments

  • Falcon4ch
    Falcon4ch almost 2 years

    I am trying to run a simple batch command -

    reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Cryptography\Configuration\SSL\00010002\Functions" /f    
    

    and it is returning the error "ERROR: The system was unable to find the specified registry key or value." I know the value name is there (I'm looking at it in the Registry Editor).

    I've tried copy/pasting the direct path into the command. I've also tried removing the quotes and running the batch as administrator. I know I can simply right-click the value and click delete, but I may have to do this on many machines and it would be a huge time saver to not have to navigate down in the registry.

    • Ken White
      Ken White almost 5 years
      Are you running under an elevated (administrative) user account when executing the batch file? Have you opened the command window with administrative rights?
    • Falcon4ch
      Falcon4ch almost 5 years
      Yes and yes. Same issue unfortunately.
    • RGuggisberg
      RGuggisberg almost 5 years
      Is it in WOW6432Node?