Skip to main content

Powershell Script Issue - SuperOps agent

Thread needs solution

Hello everyone!

I'm trying to deploy the SuperOps agent using a Powershell script from the Acronis Cyber Protect Cloud console using the following script from the SuperOps webpage:

 

Invoke-Command -ScriptBlock { param ($url) $fileName=Split-Path -Path "$url" -Leaf; invoke-WebRequest -Uri "$url" -Outfile "$fileName"; Start-Process -Wait -FilePath msiexec -ArgumentList /i,$fileName,/qn,LicenseAccepted=YES; } -ArgumentList "<MSI Download URL from site>"

 

when I add the script to the Acronis console, I use the following parameters:

Account to execute the script: System account

PowerShell execution policy: Bypass (I have tried almost all of the execution policies)

Maximum duration: 10 minutes

 

The script is successfully deployed but in the output file I get the following error:

 

invoke-WebRequest : Access to the path 'C:\ProgramData\Acronis\Agent\var\run\cyber-scripting-executor\11e5470c-6274-47a
a-915c-cc45af451ee4\LEMWV3R1VZ0G_1LSVPD4OM7S3K_windows_x64.msi' is denied.
At C:\ProgramData\Acronis\Agent\var\run\cyber-scripting-executor\11e5470c-6274-47aa-915c-cc45af451ee4\36ee4d50-f075-4bf
9-9f38-54d348765de0.ps1:1 char:85
+ ... url" -Leaf; invoke-WebRequest -Uri "$url" -Outfile "$fileName"; Start ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Invoke-WebRequest], UnauthorizedAccessException
    + FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

 

I attached the output, any recommendations to be able to deploy the superops agent from the Acronis console?

Thanks in advance!

0 Users found this helpful
frestogaslorastaswastavewroviwroclolacorashibushurutraciwrubrishabenichikucrijorejenufrilomuwrigaslowrikejawrachosleratiswurelaseriprouobrunoviswosuthitribrepakotritopislivadrauibretisetewrapenuwrapi
Posts: 2
Comments: 1727

Hello Leandro.

Please reply to the email our support sent you on the 14th of October.

We are ready to help you and answer to all the questions you may have.

Best regards.