activegate install failing

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

<span class="">[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'</span><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> 

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.

Hi @Don ,

The command for download is:

[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:

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

the problem is this part:

Hi @Don ,

The problem is in this part:

Download installer first:

[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:

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