# Cant Install Agent on Windows Machines But work on Linux

**URL:** <https://discuss.elastic.co/t/cant-install-agent-on-windows-machines-but-work-on-linux/373378>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-monitoring\
**Created:** [January 20, 2025, 5:14am UTC](https://discuss.elastic.co/t/cant-install-agent-on-windows-machines-but-work-on-linux/373378 "2025-01-20T05:14:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![syed\_naqvi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/syed_naqvi/32/136277_2.png) [@syed\_naqvi](https://discuss.elastic.co/u/syed_naqvi)\
**Post date:** [January 20, 2025, 5:14am UTC](https://discuss.elastic.co/t/cant-install-agent-on-windows-machines-but-work-on-linux/373378/1 "2025-01-20T05:14:04Z")

</div>

Hi All !

I need help as tried many times and read blogs too. However facing an issue for installing Elastic agent though fleet on windows machines. It failes as log below . However same thing /policy worked on Linux machine smoothly. Any help appreciated .

C:\Users\naqvih\elastic-agent-8.17.0-windows-x86\_64\elastic-agent.yml into result  
2025-01-20T08:06:54.142Z DEBUG [install] Merged all configuration files from [C:\Users\naqvih\elastic-agent-8.17.0-windows-x86\_64\elastic-agent.yml], no external input files  
Error: enroll command failed for unknown reason: exit status 1

> Blockquote
