Quantcast
Channel: R&D Forums
Viewing all articles
Browse latest Browse all 5562

PowerShell • Re: Get-VBRApplicationBackupJob enabled or disabled, that is the question

$
0
0
Hi @Henrik.Grevelund,

Regrettably seems the supported cmdlet Get-VBRApplicationBackupJob doesn't have the enabled property present (or I'm blind and cannot find it), so unfortunately we go to unsupported methods to find it.

Fetch the jobs as you normally would with Get-VBRApplicationBackupJob, then use the following:

Code:

[Veeam.Backup.Core.CBackupJob]::Find($job.id)
This unsupported .NET Reflection will find the job by ID and return a full CJob object, which has the IsScheduleEnabled property that can be used to see if job is set to Enabled or Disabled (True if Enabled, False if Disabled)

It's a good feature request I think, will handle registering a formal requst.

Statistics: Posted by david.domask — Mar 14, 2024 4:59 pm



Viewing all articles
Browse latest Browse all 5562

Trending Articles