Windows Headless Server Downloading Ignition

I am trying to download ignition installare in a windows headless server usigin powershell. but it seems impossible. Any Idea?


Invoke-WebRequest -UseBasicParsing -Uri "https://files.inductiveautomation.com/release/ia/8.1.33/20231019-1423/ignition-8.1.33-windows-64-installer.exe"
Invoke-WebRequest : Errore del server remoto: (403) Non consentito.
In riga:1 car:1
+ Invoke-WebRequest -UseBasicParsing -Uri "https://files.inductiveautom ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
   eption
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

Headless Linux servers require a referer for the download. Something similar might be applicable?

See here:

2 Likes

Thanks, I saw this post before write my post and this doesn't work on windows

You will have to translate curl to corresponding settings on PowerShell's Invoke-WebRequest. That's on you for using a lame operating system.

I find the solution

Invoke-WebRequest -UseBasicParsing -Headers @{'Referer'= 'https://inductiveautomation.com/downloads/ignition'} -URI 'https://s3.amazonaws.com/files.inductiveautomation
.com/release/ia/8.1.33/20231019-1423/ignition-8.1.33-windows-64-installer.exe' -OutFile ignition8133.exe
1 Like