PROBLEM

The size of the batch file for an ArcGIS Enterprise utility tool is 0KB and is unable to run

First Published: July 17, 2026
Last Published: July 17, 2026

Description

If an ArcGIS Enterprise component's utility tool is run incorrectly from the command line, this may result in a failure to run the tool or an error message. It has been observed that subsequent attempts to run the tool may fail.

When navigating to the folder of the utility tool, for example C:\Program Files\ArcGIS\Portal\tools\security\enableArcgisLogins, and observing the Windows batch file (the tool itself in a .bat format), the file size is 0KB.

The file size for a utility tool .bat file should 1KB or greater.

Solution or Workaround

There are two approaches to resolve this issue:

Run a repair on the application

  1. Rename the .bat file. For example, add an "_old" to the file name.
  2. Run a repair on the application that contains the problematic utility tool.
  3. The repair should create a new .bat file named after the tool, with a size of 1KB.

Copy code from a working environment

  1. Open NotePad or NotePad++ as an administrator and navigate to the same broken utility tool in a separate, working environment.
  2. Copy the code of the tool to a text document.
  3. Open NotePad or NotePad++ as an administrator on the broken environment and navigate to the problematic tool.
  4. Paste the code of the tool into the .bat file.
  5. Restart the component in question.

Article ID: 000042540

Software:
  • ArcGIS Enterprise

Get support with AI

Resolve your issue quickly with the Esri Support AI Chatbot.

Start chatting now

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Start chatting now

Go to download options