PowerShell script exchange
Post Reply
can
Influencer
Posts: 16
Liked: 3 times
Joined: Apr 25, 2024 8:13 am
Full Name: can bilgiç
Contact:

job next run information

Post by can »

Greetings,

I am using linux agent and I want to get the next run information with the powershell script of the backupjob I created. as far as I have researched, I cannot get this information, is there a method you can recommend to get this information?

Thanks.
david.domask
Veeam Software
Posts: 2838
Liked: 650 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: job next run information

Post by david.domask »

Hi can,

Pass a VBRComputerBackupJob object returned by Get-VBRComputerBackupJob to Get-VBRJobScheduleOptions; there is a NextRun property on these objects. See below:

Code: Select all

$job = Get-VBRComputerBackupJob -Name "*mongo*"
Get-VBRJobScheduleOptions -Job $job | select NextRun, LatestRunLocal

NextRun             LatestRunLocal
-------             --------------
12.03.2025 22:00:00 12.03.2025 10:27:41
David Domask | Product Management: Principal Analyst
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests