The property 'RetainCycles' cannot be found on this object. Verify that the property exists and can be set.
At line:1 char:9
+ $retention.BackupStorageOptions.RetainCycles = $RetentionDays
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertyAssignmentException
The same scripts works on the server without pssession.
This way you have to install the console on the automation server - and keep it up to date, like the veeam servers.
But anyway, when this is the solution. But: I'm using system center orchestrator and therefor I have only 32bits - and your add-on seems to have 64bit.
So I know these solutions in orchestrator with PowerShell:
a) invoke-pssession
b) run powershell.exe
Or is there an other solutions, which I probably could like a bit more?