[GH-ISSUE #2407] Uninstall and comamnd with spaces in path not working #1479

Closed
opened 2026-03-02 02:23:21 +03:00 by kerem · 1 comment
Owner

Originally created by @rbicelli on GitHub (Feb 7, 2026).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/2407

Server Info (please complete the following information):
Not relevant

Installation Method:
Not relevant
Agent Info (please complete the following information):

  • Agent version 2.9.1+:
  • Agent OS: Windows (10, 11, Server 2019+)

Describe the bug
While uninstalling a program, if path of uninstaller is in "Program Files" for example, command fails with output:

'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

This behavior is observed also in "Run command"

To Reproduce
Try an uninstall or sending a command with spaces in path, even quoted.

Expected behavior
The command should execute without errors

Originally created by @rbicelli on GitHub (Feb 7, 2026). Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/2407 **Server Info (please complete the following information):** Not relevant **Installation Method:** Not relevant **Agent Info (please complete the following information):** - Agent version 2.9.1+: - Agent OS: Windows (10, 11, Server 2019+) **Describe the bug** While uninstalling a program, if path of uninstaller is in "Program Files" for example, command fails with output: ``` 'C:\Program' is not recognized as an internal or external command, operable program or batch file. ``` This behavior is observed also in "Run command" **To Reproduce** Try an uninstall or sending a command with spaces in path, even quoted. **Expected behavior** The command should execute without errors
kerem closed this issue 2026-03-02 02:23:21 +03:00
Author
Owner

@wh1te909 commented on GitHub (Feb 9, 2026):

unable to reproduce, works fine with spaces. make sure you double quote it, see below for example:

Image
<!-- gh-comment-id:3869876876 --> @wh1te909 commented on GitHub (Feb 9, 2026): unable to reproduce, works fine with spaces. make sure you double quote it, see below for example: <img width="696" height="619" alt="Image" src="https://github.com/user-attachments/assets/62460a56-c530-4c44-b13b-38b5fc8f2a71" />
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tacticalrmm#1479
No description provided.