Elastic Agent was installed failure on Windows 10

Elastic Agent was installed failure on Windows 10, and it show "Error: symlink" error message.
Elastic Agent Version: 8.6.1

Install command:
.\elastic-agent.exe install --url=https://10.x.x.12:5042 --enrollment-token=dEQtUWw0b0JWQWluQ214eHY1OXk6cTh6M24wbnNTRVMyTmNCd0lweTlNZw== --insecure

Error message:
Elastic Agent will be installed at C:\Program Files\Elastic\Agent and will run as a service. Do you want to continue? [Y/n]:y
Error: symlink C:\Program Files\Elastic\Agent\data\elastic-agent-b8553c\elastic-agent.exe C:\Program Files\Elastic\Agent\elastic-agent.exe: Cannot create a file when that file already exists.
For help, please see our troubleshooting guide at Troubleshoot common problems | Fleet and Elastic Agent Guide [8.6] | Elastic

See the below picture:

Hi, you need to remove the existing Elastic Agent installation. If the Elastic service is already present, remove it, if needed with the sc command, then remove the entire ElasticAgent install directory. I hope this helps

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.