Before I run the script, in the GUI, the column "next run" shows the date/time when the job wil run next time. From the moment I run the script, the "next run" column changes to <not scheduled>. I have to go through the properties of the job and check the "run the job automatically" on the last screen to re-enable the schedule (I can't seem to find this option by using a powershell function)
Is this a bug or am I doing something wrong with my script?
Code: Select all
$options = New-VBRJobOptions -ForBackupJob
$options.NotificationOptions.SendEmailNotification2AdditionalAddresses = $true
$options.NotificationOptions.EmailNotificationAdditionalAddresses = "email@company.com"
$options.NotificationOptions.UseCustomEmailNotificationOptions = $true
$job = get-vbrjob -name "PBX"
Set-VBRJobOptions -job $job -Options $options
Veeam version is 9.5.4.2753