# How can I register my ActiveGate to run synthetics on a private location using powershell?

**URL:** <https://community.dynatrace.com/t/how-can-i-register-my-activegate-to-run-synthetics-on-a-private-location-using-powershell/50437>\
**Category:** Synthetic Monitoring\
**Tags:** activegate, synthetic-monitoring\
**Created:** [February 25, 2025, 6:54am UTC](https://community.dynatrace.com/t/how-can-i-register-my-activegate-to-run-synthetics-on-a-private-location-using-powershell/50437 "2025-02-25T06:54:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asanchez\_tfal](https://avatars.discourse-cdn.com/v4/letter/a/3ab097/32.png) [@asanchez\_tfal](https://community.dynatrace.com/u/asanchez_tfal)\
**Post date:** [February 25, 2025, 6:54am UTC](https://community.dynatrace.com/t/how-can-i-register-my-activegate-to-run-synthetics-on-a-private-location-using-powershell/50437/1 "2025-02-25T06:54:41Z")

</div>

Currently I am trying to deploy an ActiveGate and run Synthetics in a private location, but the powershell command does not seem to work.

```auto
provisioner "powershell" {<br> inline <span>= </span>[<br> <span>"Write-Output 'Installing Dynatrace ActiveGate into </span><span>${</span>var<span>.</span>synthetic_location_id<span>}</span><span> location and </span><span>${</span>var<span>.</span>dynatrace_group<span>}</span><span> group...'"</span>,<br> <span>"if (Test-Path 'C:/DeployTemp/Dynatrace-ActiveGate-Windows-x86-1.307.29.exe') {"</span>,<br> <span>" Start-Process -FilePath 'C:/DeployTemp/Dynatrace-ActiveGate-Windows-x86-1.307.29.exe' -Wait -ArgumentList 'ENABLE_SYNTHETIC=true --set-property=dt.synthetic.private_location_id==</span><span>${</span>var<span>.</span>synthetic_location_id<span>}</span><span> --set-group=</span><span>${</span>var<span>.</span>dynatrace_group<span>}</span><span>'"</span>,<br> <span>"} else {"</span>,<br> <span>" Write-Output 'Dynatrace ActiveGate installer not found.'"</span>,<br> <span>" exit 1"</span>,<br> <span>"}"<br></span>]<br>}

```

---

<div class="post-metadata">

**Author:** ![erh\_inetum](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@erh\_inetum](https://community.dynatrace.com/u/erh_inetum)\
**Post date:** [February 25, 2025, 2:24pm UTC](https://community.dynatrace.com/t/how-can-i-register-my-activegate-to-run-synthetics-on-a-private-location-using-powershell/50437/2 "2025-02-25T14:24:15Z")

</div>

Hi&nbsp;[@asanchez\_tfal](https://community.dynatrace.com/user/87156)&nbsp;,

Since Monday Dynatrace is notifying issue related to v.1.307 for OA [Windows Hosts](https://dynatrace.status.io/pages/incident/546d8cb6af8407b6730000cb/67bbfa404655441f467a3118)&nbsp;(operational) and&nbsp;[Synthetic Activegate](https://dynatrace.status.io/pages/incident/546d8cb6af8407b6730000cb/67bcccbf7315e005d13e1ffc) (partial service disruption).

Maybe you should download AG 1.305 till the issue was fixed.

Hope it helps.

Regards,

Elena.
