PowerShell script exchange
marius roma
Veteran
Posts: 459 Liked: 5 times
Joined: Feb 01, 2012 12:04 pm
Full Name: Mario
Contact:
Post
by marius roma » Dec 22, 2017 11:44 am
this post
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:
Post
by veremin » Dec 22, 2017 12:51 pm
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:
Post
by marius roma » Jan 02, 2018 2:48 pm
this post
I see that if I use
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:
Post
by Mike Resseler » Jan 02, 2018 4:34 pm
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:
Post
by veremin » Jan 04, 2018 3:02 pm
this post
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.
Users browsing this forum: No registered users and 7 guests