# Elastic-agent status Error: failed to communicate with Elastic Agent daemon

**URL:** <https://discuss.elastic.co/t/elastic-agent-status-error-failed-to-communicate-with-elastic-agent-daemon/308023>\
**Category:** Beats\
**Tags:** fleet, elastic-agent\
**Created:** [June 23, 2022, 2:14pm UTC](https://discuss.elastic.co/t/elastic-agent-status-error-failed-to-communicate-with-elastic-agent-daemon/308023 "2022-06-23T14:14:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tidenhub](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tidenhub/32/107473_2.png) [@tidenhub](https://discuss.elastic.co/u/tidenhub)\
**Post date:** [June 23, 2022, 2:14pm UTC](https://discuss.elastic.co/t/elastic-agent-status-error-failed-to-communicate-with-elastic-agent-daemon/308023/1 "2022-06-23T14:14:55Z")

</div>

I have installed Elastic Agent 8.2.2 at my Windows 10 host.  
I can see the service running in the Management tools.

But the command to get the status throws an error. PS is running in admin mode.

```auto
PS C:\Program Files\Elastic\Agent> .\elastic-agent status
Error: failed to communicate with Elastic Agent daemon: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing open \\\\.\\pipe\\elastic-agent-system: Access is denied."

```

What can I try to get it working? Thanks.

---

<div class="post-metadata">

**Author:** ![shellcode](https://avatars.discourse-cdn.com/v4/letter/s/3be4f8/32.png) [@shellcode](https://discuss.elastic.co/u/shellcode)\
**Post date:** [July 7, 2022, 1:47pm UTC](https://discuss.elastic.co/t/elastic-agent-status-error-failed-to-communicate-with-elastic-agent-daemon/308023/2 "2022-07-07T13:47:30Z")

</div>

Hi David,

I have the same problem.  
When I changed the user which the elastic agent is running as (which is Local System) to my admin user, I get rid of the problem.  
But I would like to know, which privileges the user exactly needs. Can anyone help?

Adrian

---

<div class="post-metadata">

**Author:** ![Xavier\_DELHOUME](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xavier_delhoume/32/108761_2.png) [@Xavier\_DELHOUME](https://discuss.elastic.co/u/Xavier_DELHOUME)\
**Post date:** [July 24, 2022, 9:52am UTC](https://discuss.elastic.co/t/elastic-agent-status-error-failed-to-communicate-with-elastic-agent-daemon/308023/3 "2022-07-24T09:52:35Z")

</div>

I have the same problem for the first ElasticAgent deployment on a Windows 10 client.  
Elastic Agent 8.3.2

The issue in only on Windows 10 & Windows 11. No problem on Windows Server 2019, Ubuntu Server 22.04, Ubuntu Desktop 22.04.

---

<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 21, 2022, 11:53am UTC](https://discuss.elastic.co/t/elastic-agent-status-error-failed-to-communicate-with-elastic-agent-daemon/308023/4 "2022-08-21T11:53:11Z")

</div>

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