Install failing

Trying to install to a WS2016 machine. Checked .net installed - 3.5 and 4.6.
When I run this:

c:>powershell -Command “& $([scriptblock]::Create((New-Object Net.WebClient).DownloadString(‘’))) -activate-default Pitchfork/Perl-5.32”

I see this:

Exception calling “DownloadString” with “1” argument(s): “The underlying connection was closed: An unexpected error
occurred on a send.”
At line:1 char:5

  • & $([scriptblock]::Create((New-Object Net.WebClient).DownloadString(’ …
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : NotSpecified: (:slight_smile: , MethodInvocationException
    • FullyQualifiedErrorId : WebException

The expression after ‘&’ in a pipeline element produced an object that was not valid. It must result in a command
name, a script block, or a CommandInfo object.
At line:1 char:3

  • & $([scriptblock]::Create((New-Object Net.WebClient).DownloadString(’ …
  • + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : BadExpression

Most definitely not a Windows Server expert - anyone care to chime in with a suggestion please?



This question has been asked several times.

Your Powershell version doesn’t have TLS 1.2+ support turned on by default.