05 Apr 2024 02:05 PM - last edited on 27 Apr 2024 11:42 AM by Yosi_Neuman
Getting this error when trying to run the installer on a AG Windows VM
[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'.\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
Solved! Go to Solution.
05 Apr 2024 02:19 PM
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.
05 Apr 2024 02:47 PM - edited 05 Apr 2024 02:49 PM
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:
05 Apr 2024 02:58 PM
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