You are currently reviewing an older revision of this page.

DRAFT KB-XXXX Cannot run program "wmic" error when starting Service Manager

Symptoms

When executing a Service Manager script in the <APPIAN_HOME>/services/bin directory, the following error is returned:

Exception thrown while attempting to retrieve process info for java process with main Class name QuorumPeerMain. java.io.IOException: Cannot run program "wmic": CreateProcess error=2, The system cannot find the file specified
...
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified

Cause

This error is returned when the PATH system variable is missing C:\windows\System32\wbem

To check the PATH variable:

  • In Windows, right click My Computer and select Properties. On the Advanced tab, select Environment Variables, and edit PATH to view the path set.

Action

To resolve the issue, append ;C:\windows\System32\wbem to the end of the Variable value field. To reach your System Variables follow the Appian documentation on setting up the JAVA_HOME and PATH variables to point to the JDK.

Affected Versions

This article applies to Appian 17.2 and later.

Last Reviewed: September 2018