Skip to content

Unable to re-enrolled installed Elastic Agent on Windows #7794

Open
@blakerouse

Description

@blakerouse

On Windows with an installed Elastic Agent that is enrolled into Fleet is unable to re-enroll. Performing enroll results in the following error:

C:\Program Files\Elastic\Agent>.\elastic-agent.exe enroll --url={url} --enrollment-token={token}
Error: the command is executed as root but the program files are not owned by the root user.
For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/8.17/fleet-troubleshooting.html

For confirmed bugs, please report:

  • Version: 8.17.3+
  • Operating System: Windows
  • Steps to Reproduce:
  1. Install elastic-agent.exe on Windows (not in unprivileged mode).
  2. Go into that directory and then run .\elastic-agent.exe enroll and see that it fails with the following error:
C:\Program Files\Elastic\Agent>.\elastic-agent.exe enroll --url={url} --enrollment-token={token}
Error: the command is executed as root but the program files are not owned by the root user.
For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/8.17/fleet-troubleshooting.html

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions