# Deploy Elastic Agent 8.3.2 via Windows GPO

**URL:** <https://discuss.elastic.co/t/deploy-elastic-agent-8-3-2-via-windows-gpo/310689>\
**Category:** Endpoint Security\
**Tags:** windows-installer, elastic-agent\
**Created:** [July 26, 2022, 9:33pm UTC](https://discuss.elastic.co/t/deploy-elastic-agent-8-3-2-via-windows-gpo/310689 "2022-07-26T21:33:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![bbs2web](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bbs2web/32/108402_2.png) [@bbs2web](https://discuss.elastic.co/u/bbs2web)\
**Post date:** [July 26, 2022, 9:35pm UTC](https://discuss.elastic.co/t/deploy-elastic-agent-8-3-2-via-windows-gpo/310689/2 "2022-07-26T21:35:41Z")

</div>

Kept stumbling in to the following post which provided the base structure of the script I hacked together:

> [@Installing ElasticAgent with GPO](https://discuss.elastic.co/t/installing-elasticagent-with-gpo/302250):
>
> Hi all, I'm looking for installing elastic-agent 7.16 on several Windows PCs with a GPO, EPs could be too many to install it manually. I can't find any guide to do it, so I tried to do it by myself creating a Powershell script to run with a Startup/Logon Script GPO My problem is that the installation seems to work and the C:\Program Files\Elastic\Agent folder is created at the end of the process, but the agent doesn't enroll to the fleet server and the C:\Program Files\Elastic\Agent\elastic-a…

---

_[View the full topic](https://discuss.elastic.co/t/deploy-elastic-agent-8-3-2-via-windows-gpo/310689)._
