PowerShell script exchange
Post Reply
matteu
Veeam Legend
Posts: 725
Liked: 118 times
Joined: May 11, 2018 8:42 am
Contact:

Get-VBRBackupCopyJob schedule

Post by matteu »

Hello,

How to get the state for Schedules -> Run the job automatically is enabled or not for backup copy with Get-VBRBackupCopyJob
oleg.feoktistov
Veeam Software
Posts: 1918
Liked: 636 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Get-VBRBackupCopyJob schedule

Post by oleg.feoktistov »

It can be determined with NextRun property. If it's empty, automatic runs are disabled:

Code: Select all

(Get-VBRBackupCopyJob).NextRun
Best regards,
Oleg
matteu
Veeam Legend
Posts: 725
Liked: 118 times
Joined: May 11, 2018 8:42 am
Contact:

Re: Get-VBRBackupCopyJob schedule

Post by matteu »

Thanks for your answer.

However this is also empty when schedule is enabled and set with "after job".
Is there an other way ?

I want to check if schedule is enable or not.
If it's enable I want to get the schedule (day / month / after job / periodically).

I need to be sure the schedule is enable or not and do not depend on the "type"
matteu
Veeam Legend
Posts: 725
Liked: 118 times
Joined: May 11, 2018 8:42 am
Contact:

Re: Get-VBRBackupCopyJob schedule

Post by matteu »

Hello,
I hope you can help me soon on this.
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests