# Elastic Agent Windows Deployment Symlink Issue 8.4.1

**URL:** <https://discuss.elastic.co/t/elastic-agent-windows-deployment-symlink-issue-8-4-1/314462>\
**Category:** Elastic Agent\
**Created:** [September 14, 2022, 9:35pm UTC](https://discuss.elastic.co/t/elastic-agent-windows-deployment-symlink-issue-8-4-1/314462 "2022-09-14T21:35:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ad3t0](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ad3t0/32/68492_2.png) [@Ad3t0](https://discuss.elastic.co/u/Ad3t0)\
**Post date:** [September 14, 2022, 9:35pm UTC](https://discuss.elastic.co/t/elastic-agent-windows-deployment-symlink-issue-8-4-1/314462/1 "2022-09-14T21:35:50Z")

</div>

Hello,

When attempting to deploy the Elastic agent via Windows Server GPO I receive the error

"Error: symlink C:\Program Files\Elastic\Agent\data\elastic-agent-8d7885\elastic-agent  
.exe C:\Program Files\Elastic\Agent\elastic-agent.exe: A required privilege is not held by the client."

Indicating that creating a symlink via GPO startup script is not possible. What is the work around for this? How does one generally deploy the elastic agent in a Windows environment? If anyone has any insight that would be much appreciated.

Thank you

---

<div class="post-metadata">

**Author:** ![hendry.lim](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hendry.lim/32/71328_2.png) [@hendry.lim](https://discuss.elastic.co/u/hendry.lim)\
**Post date:** [September 15, 2022, 4:19am UTC](https://discuss.elastic.co/t/elastic-agent-windows-deployment-symlink-issue-8-4-1/314462/2 "2022-09-15T04:19:59Z")

</div>

You need an administrative rights to be able to create a symlink, i.e. `mklink` on Windows.

---

<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:** [October 13, 2022, 4:20am UTC](https://discuss.elastic.co/t/elastic-agent-windows-deployment-symlink-issue-8-4-1/314462/3 "2022-10-13T04:20:56Z")

</div>

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