I can't figure out how to enable the "During the following time period only:" in schedule for a Backup Copy job.
I am able to create the correct Schedule but not enabling it.
I thought it was as below but that does not enable it just put the correct time window.
And the value has OptionsContinuous.Enabled is true but what other option do you have to enable?
Code: Select all
$ScheduleOptions = $job.ScheduleOptions
$ScheduleOptions.OptionsContinuous.Schedule = $AllowedtoRun
$ScheduleOptions.OptionsContinuous.Enabled = $true
Set-VBRJobScheduleOptions -Job $job -Options $ScheduleOptions