Der Wert "Veeam.Backup.Core.CBackupJob" kann nicht in den Typ "Veeam.Backup.PowerShell.Infos.VBRComputerBackupJob" konvertiert werden. Fehler: "Unable to convert job type 'Backup' to EP policy management type"
I need to configure post-job scripts on a number of scripts. How to solve this?
The code you see in the example concerns agent managed backup jobs.
So, the error you get appears when you apply the script on regular backup jobs, which are of type CBackupJob and hold distinct properties.
Try the following solution lest to depend on job type: