Latest Windows Install instructions do not work - gives Powershell errror

Install instructions through this following error, on Windows 2021 r2. What can I do?

C:\Users\Administrator>powershell -Command “& $([scriptblock]::Create((New-Objec
t Net.WebClient).DownloadString(‘https://platform.activestate.com/dl/cli/install
.ps1’))) -activate-default ActiveState/Perl-5.32”

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
    
    

Has anyone else had this problem?

Hi beladinsec,

I assume this was Windows Server 2012 r2. I have passed it along to the team to see if there are any compatibility issues with this version.

Cheers,

-JR

Your server is using an old version of Powershell and TLS support is not enabled by default.

You can enable it with an additional command.

1 Like