ERROR

<command utility> is not recognized as an internal or external command, operable program or batch file

Last Published: March 9, 2023

Error Message

On the ArcGIS Enterprise machine, attempts to run a command utility for the deployment fail, and return the following error message in the Command Prompt window:

Error:   
<command utility> is not recognized as an internal or external command, operable program or batch file.

The image below shows the error message when attempting to run the 'webgisdr' utility in the Command Prompt window.

The error message returned when attempting to run the webgisdr utility

Cause

In the Command Prompt window, the command utility directory is not specified or set correctly. The default location of the command utility is:

C:\Program Files\ArcGIS\Portal\tools\<command utility>

Solution or Workaround

Change the location to the command utility directory before running the utility in the Command Prompt window, as shown in the code block and image below.

Note:
Depending on the command utility directory, use quotation marks when specifying the utility location in the Command Prompt window. Refer to Microsoft: Long filenames or paths with spaces require quotation marks for more information.
C:\Windows\system32>cd "C:\Program Files\ArcGIS\Portal\tools\<command utility>"

The image below shows the 'webgisdr' utility running on the ArcGIS Enterprise machine after changing the directory to the utility location in the Command Prompt window.

The webgisdr utility runs after changing the location path in the Command Prompt window

Refer to Portal for ArcGIS: ArcGIS Data Store command utility reference for more information regarding the available command utility in ArcGIS Enterprise.

Article ID:000029521

Software:
  • ArcGIS Data Store
  • Portal for ArcGIS
  • ArcGIS Server

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options