PowerShell script exchange
Post Reply
Henrik.Grevelund
Service Provider
Posts: 160
Liked: 18 times
Joined: Feb 13, 2017 2:56 pm
Full Name: Henrik Grevelund
Contact:

Get-VBRApplicationBackupJob enabled or disabled, that is the question

Post by Henrik.Grevelund »

Hi,

I have some SAP-Hana plugin backup policies. I need to disable them during maintenance.
But i only wan't to disable the one who is enabled. So when i enable them, and can just enable the once i disabled.

Anyone found a way to se if the backup policy is enabled or not ?
Have nice day,
Henrik
david.domask
Veeam Software
Posts: 1226
Liked: 322 times
Joined: Jun 28, 2016 12:12 pm
Contact:

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

Post by david.domask »

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: Select all

[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.
David Domask | Product Management: Principal Analyst
Henrik.Grevelund
Service Provider
Posts: 160
Liked: 18 times
Joined: Feb 13, 2017 2:56 pm
Full Name: Henrik Grevelund
Contact:

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

Post by Henrik.Grevelund » 1 person likes this post

Hi David,

Thanks, i will try this.
And thanks for the FR registration
Have nice day,
Henrik
Post Reply

Who is online

Users browsing this forum: No registered users and 24 guests