Maintain control of your Microsoft 365 data
Post Reply
LeeMackie
Service Provider
Posts: 20
Liked: 2 times
Joined: May 25, 2022 12:37 am
Full Name: Lee Mackie
Contact:

[Powershell] On-demand backup scheduling

Post by LeeMackie »

Can anyone advise if there is a way to create and/or set backup jobs to not have the Run Automatically scheduling enabled?

I have tested creating jobs with the -SchedulePolicy setting, and have also tested setting a schedule without the -EnabledSchedule switch and both result in the Run Automatically checkbox set in the backup job and the Daily - 9:00AM schedule being configured.
Mildur
Product Manager
Posts: 8735
Liked: 2294 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: [Powershell] On-demand backup scheduling

Post by Mildur » 1 person likes this post

Hi Lee

I checked in in my lab. Looks like the -EnabledSchedule is missing an option to provide a $False parameter.
And if not provided, it's still sets the Scheduled to enabled. This behavior is different as documented in the user guide.
Let me discuss it with the team.

Best,
Fabian
Product Management Analyst @ Veeam Software
LeeMackie
Service Provider
Posts: 20
Liked: 2 times
Joined: May 25, 2022 12:37 am
Full Name: Lee Mackie
Contact:

Re: [Powershell] On-demand backup scheduling

Post by LeeMackie »

Thanks Fabian, I honestly thought I was going crazy that it wasn't working as designed 😅

I'll await your further response.
Mildur
Product Manager
Posts: 8735
Liked: 2294 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: [Powershell] On-demand backup scheduling

Post by Mildur »

You‘re welcome.

While I wait for confirmation from our QA team, you could try to disable the scheduler over our RestAPI.
Those endpoints can be called by powershell commands:

Create a Job:
https://helpcenter.veeam.com/docs/vbm36 ... on/Job_Add

Update a Job:
https://helpcenter.veeam.com/docs/vbm36 ... Job_Update

Best,
Fabian
Product Management Analyst @ Veeam Software
Mildur
Product Manager
Posts: 8735
Liked: 2294 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: [Powershell] On-demand backup scheduling

Post by Mildur »

Hi Lee

Please try:

Code: Select all

New-VBOJobSchedulePolicy -EnableSchedule:$false
We will update the user guide to make it more clear.

Best,
Fabian
Product Management Analyst @ Veeam Software
LeeMackie
Service Provider
Posts: 20
Liked: 2 times
Joined: May 25, 2022 12:37 am
Full Name: Lee Mackie
Contact:

Re: [Powershell] On-demand backup scheduling

Post by LeeMackie » 1 person likes this post

Thanks Fabian - confirmed this works correctly.
Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests