# activegate install failing

**URL:** <https://community.dynatrace.com/t/activegate-install-failing/45028>\
**Category:** Open Q&A\
**Tags:** installation, activegate\
**Created:** [April 5, 2024, 1:05pm UTC](https://community.dynatrace.com/t/activegate-install-failing/45028 "2024-04-05T13:05:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Don](https://avatars.discourse-cdn.com/v4/letter/d/ed655f/32.png) [@Don](https://community.dynatrace.com/u/Don)\
**Post date:** [April 5, 2024, 1:05pm UTC](https://community.dynatrace.com/t/activegate-install-failing/45028/1 "2024-04-05T13:05:23Z")

</div>

Getting this error when trying to run the installer on a AG Windows VM

```auto
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'https://{environmentid}.live.dynatrace.com/api/v1/deployment/installer/gateway/windows/latest?arch=x86' -Headers @{ 'Authorization' = 'Api-Token dt0c01.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' } -OutFile 'Dynatrace-ActiveGate-Windows-x86-1.287.31.exe'<strong>.\Dynatrace-ActiveGate-Windows-x86-1.287.31.exe : The term '.\Dynatrace-ActiveGate-Windows-x86-1.287.31.exe' is not
recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if
a path was included, verify that the path is correct and try again.
At C:\Packages\Plugins\Microsoft.CPlat.Core.RunCommandWindows\1.1.18\Downloads\script12.ps1:2 char:1
+ .\Dynatrace-ActiveGate-Windows-x86-1.287.31.exe
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ObjectNotFound: (.\Dynatrace-Act...86-1.287.31.exe:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException</strong>

```

---

<div class="post-metadata">

**Author:** ![rastislav\_danis](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@rastislav\_danis](https://community.dynatrace.com/u/rastislav_danis)\
**Post date:** [April 5, 2024, 1:19pm UTC](https://community.dynatrace.com/t/activegate-install-failing/45028/2 "2024-04-05T13:19:35Z")

</div>

Any chance, that mentioned version was not yet on server ? Have you tried to download installer via gui?

Btw: i suggest to clear token in your post.

---

<div class="post-metadata">

**Author:** ![Miguel\_RinconG](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/miguel_rincong/32/29455_2.png) [@Miguel\_RinconG](https://community.dynatrace.com/u/Miguel_RinconG)\
**Post date:** [April 5, 2024, 1:47pm UTC](https://community.dynatrace.com/t/activegate-install-failing/45028/3 "2024-04-05T13:47:45Z")

</div>

Hi&nbsp;[@Don](https://community.dynatrace.com/user/74279)&nbsp;,

The command for download is:

```markup
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'https://{environmentid}.live.dynatrace.com/api/v1/deployment/installer/gateway/windows/latest?arch=x86' -Headers @{ 'Authorization' = 'Api-Token ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••' } -OutFile 'Dynatrace-ActiveGate-Windows-x86-version.exe'

```

Then you can run:

```markup
.\Dynatrace-ActiveGate-Windows-x86-version.exe

```

the problem is this part:

 ![Miguel_RinconG_1-1712324851426.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/2/62cbb8ae3c5b698cd9c2c5c26ecb3945952dad07.png)

---

<div class="post-metadata">

**Author:** ![Miguel\_RinconG](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/miguel_rincong/32/29455_2.png) [@Miguel\_RinconG](https://community.dynatrace.com/u/Miguel_RinconG)\
**Post date:** [April 5, 2024, 1:58pm UTC](https://community.dynatrace.com/t/activegate-install-failing/45028/4 "2024-04-05T13:58:20Z")

</div>

Hi&nbsp;[@Don](https://community.dynatrace.com/user/74279)&nbsp;,

The problem is in this part:

 ![Miguel_RinconG_2-1712325407815.png](https://global.discourse-cdn.com/dynatrace/original/2X/6/62129c23360d2a14e40a7ba89bad2957ac79042d.png)

Download installer first:

```markup
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'https://{environmentid}.live.dynatrace.com/api/v1/deployment/installer/gateway/windows/latest?arch=x86' -Headers @{ 'Authorization' = 'Api-Token dt0c01. ***.************' } -OutFile 'Dynatrace-ActiveGate-Windows-x86-1.287.31.exe'

```

Then you can run the installer:

```markup
.\Dynatrace-ActiveGate-Windows-x86-1.287.31.exe

```
