PowerShell script exchange
Post Reply
marius roma
Veteran
Posts: 459
Liked: 5 times
Joined: Feb 01, 2012 12:04 pm
Full Name: Mario
Contact:

Disabling, printing and scheduling maintenance health check

Post by marius roma »

I have a large number of backup jobs.
I need to perform several actions on specific jobs:
  • Enable or disable health check
  • Display health check schedule (i.e. "Weekly Every Monday")
  • Set health check schedule (i.e. "Monthly Every third Monday")
Is there any sample I can start from?
Regards and season's greetings
marius
veremin
Product Manager
Posts: 20400
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Disabling, printing and scheduling maintenance health ch

Post by veremin » 1 person likes this post

Kindly, try to search through this subforum, using key words. There are plenty of examples. Thanks.
marius roma
Veteran
Posts: 459
Liked: 5 times
Joined: Feb 01, 2012 12:04 pm
Full Name: Mario
Contact:

Re: Disabling, printing and scheduling maintenance health ch

Post by marius roma »

I see that if I use

Code: Select all

Set-VBRJobAdvancedOptions
I can set health check.
I was unable to find how to see if health check is enabled and confngured for a given job.
Can anybody please help?
Regards
marius
Mike Resseler
Product Manager
Posts: 8191
Liked: 1322 times
Joined: Feb 08, 2013 3:08 pm
Full Name: Mike Resseler
Location: Belgium
Contact:

Re: Disabling, printing and scheduling maintenance health ch

Post by Mike Resseler » 1 person likes this post

Hi Marius,

If I am not mistaken and understand you correctly, you can see that true this:

Code: Select all

$options = Get-VBRJobOptions -Job "NameOfTheJob"
$options.Backupstorageoptions
EnableIntegrityChecks should tell you true or false
veremin
Product Manager
Posts: 20400
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Disabling, printing and scheduling maintenance health ch

Post by veremin »

As I've said, this topic has been discussed several times before (just one recent example; and there are much more). So, feel free to check this subforum. Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests