CB Protection: Server install fails with the log code "Return Code: 1 on execution of C:\Windows\SysWOW64\cscript.exe."
search cancel

CB Protection: Server install fails with the log code "Return Code: 1 on execution of C:\Windows\SysWOW64\cscript.exe."

book

Article ID: 288755

calendar_today

Updated On:

Products

Carbon Black App Control (formerly Cb Protection)

Issue/Introduction

  • Install fails with no visible error, rolling back its changes
  • Logs show the following error:
    Executing C:\Windows\SysWOW64\cscript.exe "C:\Users\USERNAME\AppData\Local\Temp\GUID\GUID\icfutil.js" /silent  /s:ParityServer /e:41002 /i:41002 /n:localhost /p:tcp 
    
    Return Code: 1 on execution of C:\Windows\SysWOW64\cscript.exe.
  • Attempting to run a JS file manually in CScript fails with an error:
    There is no script engine for file extension .js

Environment

  • CB Protection Server: All Versions
  • Microsoft Windows Server: All Supported Versions

Cause

The default file handler for .JS files is set incorrectly in the registry

Resolution

  1. Open Regedit as an Administrator
  2. Navigate to HKEY_CLASSES_ROOT\.js
  3. Set the (Default) reg_sz key to JSFile
  4. Re-run the Server installer