We have a script that was working on Veeam 9.5, upgraded to V11
Script checks for successful backup runs
Code: Select all
$EnabledVbrJobs=(Get-VBRJob | Where-Object -Property IsScheduleEnabled -EQ $True)
foreach ($VbrJob in $EnabledVbrJobs) {
if ( ($VbrJob.Info.LatestStatus -eq 'Success') -and ($VbrJob.Info.ScheduleOptions.LatestRunLocal -ge $TimeNow.AddHours(-27)) )
.....
}
But when the POSH script runs it is returning 12/30/21 2:07:38am
Very odd.. Getting the same behavior when checking status on any job.
Thanks!
jay