KB-1751 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.

Action

Follow the Appian documentation on setting up the JAVA_HOME and PATH variables to append ;C:\windows\System32\wbem to the end of the Variable value field.

Affected Versions

This article applies to Appian 17.2 and later using Windows.

Last Reviewed: October 2018

Related
Recommended