# Problem of elastic-agent install on windows 10 VM

**URL:** <https://discuss.elastic.co/t/problem-of-elastic-agent-install-on-windows-10-vm/338775>\
**Category:** Elastic Agent\
**Created:** [July 19, 2023, 11:14am UTC](https://discuss.elastic.co/t/problem-of-elastic-agent-install-on-windows-10-vm/338775 "2023-07-19T11:14:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jean10](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jean10](https://discuss.elastic.co/u/jean10)\
**Post date:** [July 19, 2023, 11:14am UTC](https://discuss.elastic.co/t/problem-of-elastic-agent-install-on-windows-10-vm/338775/1 "2023-07-19T11:14:02Z")

</div>

Hello everyone,

I would install elastic agent on windows 10 computer test.  
I use command recommanded by agent of installation but the installation not working and i haven't output for checking status......

For obtain outputs , i must using the command without success : .\elastic-agent.exe run -c .\elastic-agent.reference.yml  
This an example of output of my tests :

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/0/c06a93dfa7390f0467154ce7b9bdb24fcdeb4985.png)  
Actually , my elastic server was heberged on vm test and fleet server is ready on same server .

On side of my server , i was checking port of my server too and not change self-signed certificate.  
LISTEN 0 128 0.0.0.0:22 0.0.0.0:\*  
LISTEN 0 128 127.0.0.1:8221 0.0.0.0:\*  
LISTEN 0 128 0.0.0.0:5601 0.0.0.0:\*  
LISTEN 0 128 127.0.0.1:6789 0.0.0.0:\*  
LISTEN 0 128 127.0.0.1:6791 0.0.0.0:\*

Anyone can help me, please ?

---

<div class="post-metadata">

**Author:** ![jean10](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jean10](https://discuss.elastic.co/u/jean10)\
**Post date:** [July 21, 2023, 10:18am UTC](https://discuss.elastic.co/t/problem-of-elastic-agent-install-on-windows-10-vm/338775/2 "2023-07-21T10:18:39Z")

</div>

Ok i was find my solution . Is due to two reason .

1/ I haven't create directory for agent .

2/ When i use default self-certificate, i need to add more arguement for install and enroll my windows computer .( For exemple --force and --insecure in demo environnement)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 18, 2023, 10:18am UTC](https://discuss.elastic.co/t/problem-of-elastic-agent-install-on-windows-10-vm/338775/3 "2023-08-18T10:18:51Z")

</div>

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