This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Remote Deployment with NinjaRMM Failure to Download

I have an open case with Sophos but so far no one has been able to help so I was hoping the community might be able to.

I am trying to deploy Sophos with NinjaRMM using Sophos' provided guide. This is the error I am getting below. I confirmed that Windows Firewall is off. I checked the logs on our CheckPoint firewall, nothing is being blocked or dropped. I tried changing the different product codes in the parameter.

Downloading Sophos Central Installer
Invoke-WebRequest : {}
At C:\ProgramData\NinjaRMMAgent\scripting\customscript_gen_5.ps1:142 char:1
+ Invoke-WebRequest -Uri "central.sophos.com/.../downl ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
eption
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
--Sophos Central Installer Did Not Download - Please check Firewall or Web Filter
Transcript stopped, output file is C:\temp\SophosCentralInstallLog.txt



This thread was automatically locked due to age.
Parents
  • Hi Christopher,

    Thanks for reaching out to the Sophos Community Forum.

    If you were to try the Invoke-WebRequest command locally on the device through PowerShell or the command line, does the command succeed in downloading the file? 

    I also suggest copying the URL you have entered into a web browser to see if pasting it into the URL field will result in the installer file being downloaded. This is the typical behaviour I would expect if the URL is correct. 

    Kushal Lakhan
    Team Lead, Global Community Support
    Connect with Sophos Support, get alerted, and be informed.
    If a post solves your question, please use the "Verify Answer" button.
    The New Home of Sophos Support Videos!  Visit Sophos Techvids
  • When I paste in the URL central.sophos.com/.../SophosSetup.exe it returns "{}" sans quotes. Please not I have my token I am just posting that there as filler.

    When I execute

    Invoke-WebRequest -Uri "central.sophos.com/.../[CUSTOMERTOKEN]/SophosSetup.exe" -OutFile c:\temp\SophosSetup.exe locally on the machine, as an admin, with an elevated powershell session I get

    Invoke-WebRequest : {}
    At line:1 char:1
    + Invoke-WebRequest -Uri "central.sophos.com/.../downl ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
    eption
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

Reply
  • When I paste in the URL central.sophos.com/.../SophosSetup.exe it returns "{}" sans quotes. Please not I have my token I am just posting that there as filler.

    When I execute

    Invoke-WebRequest -Uri "central.sophos.com/.../[CUSTOMERTOKEN]/SophosSetup.exe" -OutFile c:\temp\SophosSetup.exe locally on the machine, as an admin, with an elevated powershell session I get

    Invoke-WebRequest : {}
    At line:1 char:1
    + Invoke-WebRequest -Uri "central.sophos.com/.../downl ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
    eption
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

Children