PowerShell script exchange
Post Reply
aantonacci@shci.ca
Influencer
Posts: 21
Liked: never
Joined: Oct 19, 2020 7:42 pm
Full Name: Anthony Antonacci
Contact:

Get-VBRJobAdvancedOptions ??

Post by aantonacci@shci.ca »

Hi quick question,

I am trying to read the healthcheck shcedule through PS but i can't figure what command will list me the day it runs?

I found the command to set it , but i want to be able to "read it"

Setting it:

Code: Select all

Get-VBRJob -Name "Backup Job 01" | Set-VBRJobAdvancedOptions -EnableIntegrityChecks $True -Enabled $True -CommandLine "report.exe" -Periodicity Cycles  -Frequency 5
Mildur
Product Manager
Posts: 9837
Liked: 2602 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Get-VBRJobAdvancedOptions ??

Post by Mildur »

You need to get the information out of the VBRJob Options:

Code: Select all

# Getting the Job into a variable
$job = Get-VBRJob -Name "Backup Job 01"

# Getting the Job Options for the specific Job
$options = Get-VBRJobOptions -Job $job

# List the day, when health check is scheduled
$job.Options.GenerationPolicy.RecheckDays

# List other settings for the health check
$job.Options.GenerationPolicy.EnableRechek
$job.Options.GenerationPolicy.RecheckScheduleKind
$job.Options.GenerationPolicy.RecheckBackupMonthlyScheduleOptions
Product Management Analyst @ Veeam Software
superdevo
Influencer
Posts: 21
Liked: 6 times
Joined: Oct 16, 2019 7:43 pm
Full Name: David Torreggiani
Contact:

Re: Get-VBRJobAdvancedOptions ??

Post by superdevo »

Hi, i am using this to get the healthcheck schedule, but i also want to edit the time. What is the correct way to set it? I see the new commadlets (Set-VBRHealthCheckOptions) do not allow this.
Can somebody point me in the right direction?
david.domask
Veeam Software
Posts: 2123
Liked: 513 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: Get-VBRJobAdvancedOptions ??

Post by david.domask »

Think I answered in the other topic @superdevo :)

post501966.html#p501966
David Domask | Product Management: Principal Analyst
Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests