PowerShell script exchange
Post Reply
dcd62
Enthusiast
Posts: 39
Liked: 4 times
Joined: Aug 20, 2014 1:00 pm
Contact:

Script to change the NextRun date and time

Post by dcd62 »

I have a script that creates the replication job but want to also script changing the NextRun time to a specific date after the job has been scheduled..I found a couple of old topics but could not get them to work.
I'm running Veeam Backup & Replication 9.5.
Any ideas?
Thanks
veremin
Product Manager
Posts: 20284
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Script to change the NextRun date and time

Post by veremin »

Just to be sure - you want to set a daily schedule for replication job as well as certain time of its execution? Thanks!
dcd62
Enthusiast
Posts: 39
Liked: 4 times
Joined: Aug 20, 2014 1:00 pm
Contact:

Re: Script to change the NextRun date and time

Post by dcd62 »

Yes.. I want to start on a specific day in the future.. then continue with a daily replication. Thanks.
veremin
Product Manager
Posts: 20284
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Script to change the NextRun date and time

Post by veremin »

With PS you cannot modify NextRun property, you can only tweak schedule options (the same way you do it in UI: daily, monthly, etc.).

What you can do is:

- Disable schedule for the said replication job
- To write a script that starts the replication job and sets daily schedule for it
- Set the script to run on specific day, using Windows Scheduler

Thanks!
dcd62
Enthusiast
Posts: 39
Liked: 4 times
Joined: Aug 20, 2014 1:00 pm
Contact:

Re: Script to change the NextRun date and time

Post by dcd62 »

Ok, so to be clear, you can't change the NextRun property to a date like: 05/28/19?

thanks, I'll look at your suggestion.
veremin
Product Manager
Posts: 20284
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Script to change the NextRun date and time

Post by veremin »

Nope, you cannot. Thanks!
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 12 guests