IBM Support

Software scan fails with (Exit Code=1) on Windows

Troubleshooting


Problem

Software scan fails with exit code 1

Symptom

No scan data gathered for software scans

Cause

It can be two reasons:
1. Windows 'cscript' is not recognized as an internal or external command, operable program or batch file.
2. Windows 'VBScript.dll" is not registered

Environment

Windows

Diagnosing The Problem

  • Check BESClient logs for the following statement:

Command succeeded (Exit Code=1) waithidden cmd /c cscript //Nologo ...
 
  • Please go to endpoint, open a command prompt and type:  cscript

Expected error 1:

'cscript' is not recognized as an internal or external command, operable program or batch file.


Expected error 2:
CScript Error: Can't find script engine "VBScript" for script ...

Resolving The Problem

Error 1:

Likely the Environment PATH does not have the location of the cscript executable at

c:\windows\system32

  1. Going to the control panel.
  2. Clicking on system
  3. Clicking on the advanced tab
  4. Click on the environment button at the bottom of the page.
  5. Append

";C:\windows\system32" (no quotes)

The bigfix client will have to be restarted for the corrected variable to be read in.

Error 2:

  1. Click on start button, type cmd. In the search result right-click on cmd and select Run as administrator.
  2. Type cd %windir%\system 32 (Note: there is a space between system and 32) and press enter.
  3. Type regsvr32 vbscript.dll in command prompt and press enter.
  4. Type regsvr32 jscript.dll in command prompt and press enter.

If the registration was successful, you should now see the following message:
DllRegisterServer in vbscript.dll succeeded.
 


Document Location

Worldwide


[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SS8JFY","label":"IBM License Metric Tool"},"Component":"scanner","Platform":[{"code":"PF033","label":"Windows"}],"Version":"LMT9.2","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

More support for:
IBM License Metric Tool

Software version:
LMT9.2

Operating system(s):
Windows

Document number:
1071610

Modified date:
29 January 2020

UID

ibm11071610

Manage My Notification Subscriptions