Set-VBRHealthCheckOptions
Short Description
Modifies the health check schedule options.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Set-VBRHealthCheckOptions -Options <VBRHealthCheckOptions> [-Enable] [-ScheduleType <VBRHealthCheckScheduleType>] [-SelectedDays <DayOfWeek[]>] [-DayNumber <VBRDayNumberInMonth>] [-DayOfWeek <DayOfWeek>] [-DayOfMonth <String>] [-SelectedMonths <VBRMonth[]>] [-WeeklyPeriod <TimeSpan>] [-MonthlyPeriod <TimeSpan>] [-EnableFullHealthCheck] [<CommonParameters>] |
Detailed Description
This cmdlet modifies the VBRHealthCheckOptions object that defines backup files health check schedule options.
Important |
|
You cannot apply the |
Note |
|
To modify settings, specify new values for the necessary parameters. The cmdlet will overwrite the previous parameter values with new values. The parameters that you omit will remain unchanged. |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
DayNumber |
For the monthly health check of backup files. Specifies the day of the month when the job performs backup files health check. Parameter accepts the following values:
|
|
False |
Named |
False |
|
DayOfMonth |
For the monthly health check of backup files. Specifies the day of the month, when the job performs backup files health check. |
|
False |
Named |
False |
|
DayOfWeek |
For the monthly health check of backup files. Specifies the day of the week, when the job performs the health check. Parameter accepts the following values:
Default: |
|
False |
Named |
False |
|
Enable |
Defines that the job will perform the light health check of backup files. |
|
False |
Named |
False |
|
EnableFullHealthCheck |
Defines that the job will perform the full health check of backup files. |
|
False |
Named |
False |
|
MonthlyPeriod |
For the monthly health check of backup files. Specifies the job start time. |
|
False |
Named |
False |
|
Options |
Specifies the health check schedule options you want to modify.
Accepts the |
|
True |
Named |
True (ByValue) |
|
ScheduleType |
Specifies the type of the health check job schedule. Parameter accepts the following values:
|
|
False |
Named |
False |
|
SelectedDays |
For the weekly health check of backup files. Specifies the day of the week when the job will perform the health check of backup files. |
|
False |
Named |
False |
|
SelectedMonths |
For the monthly health check of backup files. Specifies the month when the job will perform the health check of backup files. |
|
False |
Named |
False |
|
WeeklyPeriod |
For the weekly health check of backup files. Specifies the job start time. |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
The cmdlet returns the VBRHealthCheckOptions object that defines backup files health check schedule options.
Examples
Modifying Backup Files Health Check Schedule Options
This command modifies the following health check schedule options:
- The job will perform the light health check.
- The job runs weekly on Sunday at 18:00.
|
$hs = New-VBRHealthCheckOptions Set-VBRHealthCheckOptions -Options $hs -Enable -ScheduleType Weekly -WeeklyPeriod 18:00 -SelectedDays Sunday |
Perform the following steps:
- Run the
New-VBRHealthCheckOptionsDefines the health check schedule options. cmdlet. Save the result to the$hsvariable. - Run the
Set-VBRHealthCheckOptionscmdlet. Specify the following settings:- Set the
$hsvariable as theOptionsparameter value. - Provide the
Enableparameter. - Specify the
ScheduleTypeparameter value. - Specify the
WeeklyPeriodparameter value. - Specify the
SelectedDaysparameter value.
- Set the
Related Commands
New-VBRHealthCheckOptionsDefines the health check schedule options.