DWORD "Enabled" value of "0" is DISABLED, "1" is ENABLE
2. Then verify script extension
The .JS file extension may have been taken over by a different application in the Windows registry, such as a text editor.
By default the "HKEY_CLASSES_ROOT\.js" registry key should have a default value of "JSFile". If this has been changed, the Windows Scripting Host may be unable to find the ScriptEngine subkey, which leads to a failure when Host Integrity attempts to launch the script.
The same error can also occur if the value under "HKEY_CLASSES_ROOT\.js" is correct, but the "HKEY_CLASSES_ROOT\JSFile\ScriptEngine" is missing the default value of "JScript".
To enable Windows Script Host
1. Change "Enabled" DWORD to '1' in HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Script Host\Settings 2. Run smc -stop / smc -start