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

You’re not deleting a registry key named: 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: You would also need to run the script ‘as Administrator’, to prevent an Access is denied message.

Java Error opening registry key

Make sure you remove any java.exe, javaw.exe and javaws.exe from your Windows\System32 folder and if you have an x64 system (Win 7 64 bits) also do the same under Windows\SysWOW64. If you can’t find them at these locations, try deleting them from C:\ProgramData\Oracle\Java\javapath.