Set-VBRNotificationOptions
Short Description
Modifies job notification settings.
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Set-VBRNotificationOptions -NotificationOptions <VBRNotificationOptions> [-EnableAdditionalNotification] [-AdditionalAddress <String[]>] [-UseNotificationOptions] [-NotificationSubject <String>] [-NotifyOnSuccess] [-NotifyOnWarning] [-NotifyOnError] [-NotifyOnLastRetryOnly] [-EnableSnmpNotification] [-NotifyWhenWaitingForTape] [-EnableDailyNotification] [-SendTime <TimeSpan>] [<CommonParameters>] |
Detailed Description
This cmdlet modifies notification settings for backup or replication jobs.
Note |
|
To modify settings, specify new values for the necessary parameters. The cmdlet will overwrite the previous parameters values with new values. The parameters that you omit will remain unchanged. |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
AdditionalAddress |
Specifies the email address for job notifications. |
|
False |
Named |
False |
|
EnableAdditionalNotification |
Enables the email notification option. |
|
False |
Named |
False |
|
EnableDailyNotification |
Defines that the cmdlet will send email notification daily.
Use the |
|
False |
Named |
False |
|
EnableSnmpNotification |
Defines that the cmdlet will send the SNMP traps when the job completes successfully. Note: This parameter is not available for the following types of jobs:
|
|
False |
Named |
False |
|
NotificationOptions |
Specifies notification settings that you want to modify.
Accepts the |
True |
Named |
False |
|
|
NotificationSubject |
Specifies the subject of the email notifications. |
|
False |
Named |
False |
|
NotifyOnError |
Defines that the cmdlet will send the email when the job finished with an error.
Default:
Note: To disable this option, set the parameter value to |
|
False |
Named |
False |
|
NotifyOnLastRetryOnly |
Defines that the cmdlet will send the email about the final job status. If you do not enable this option, Veeam Backup & Replication will send one notification per every job retry.
Default: Note:
|
|
False |
Named |
False |
|
NotifyOnSuccess |
Defines that the cmdlet will send the email when the job finished successfully.
Default:
Note: To disable this option, set the parameter value to |
|
False |
Named |
False |
|
NotifyOnWarning |
Defines that the cmdlet will send the email when the job finished with a warning.
Default:
Note: To disable this option, set the parameter value to |
|
False |
Named |
False |
|
NotifyWhenWaitingForTape |
Defines that the cmdlet will send the email if the tape job cannot start because there are no available tapes. Note: This parameter is not available for the following types of jobs:
|
|
False |
Named |
False |
|
SendTime |
Specifies the time when the cmdlet must send the email notification. |
|
False |
Named |
False |
|
UseNotificationOptions |
Defines that the cmdlet will use custom or global settings. You can set it to Use the following parameters to set the custom settings:
|
|
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 VBRNotificationOptions object that contains job notification options.
Examples
Modifying Notification Settings for Backup Job
This example shows how to modify notification settings for the backup job. Veeam Backup & Replication will send a notification when the backup job completes with the error, warning or when it completes successfully.
|
$notifications = New-VBRNotificationOptions -EnableAdditionalNotification -AdditionalAddress "admin@domain.com" -UseNotificationOptions -NotifyOnSuccess -NotifyOnWarning Set-VBRNotificationOptions -NotificationOptions $notifications -EnableAdditionalNotification -UseNotificationOptions -NotifyOnError |
Perform the following steps:
- Run the
New-VBRNotificationOptionsCreates new job notification options. cmdlet. Specify the following settings:- Provide the
EnableAdditionalNofiticationparameter. - Specify the
AdditionalAddressparameter value. - Provide the
UseNotificationOptionsparameter. - Provide the
NotifyOnSuccessparameter. - Provide the
NotifyOnWarningparameter.
Save the result to the
$notificationsvariable. - Provide the
- Run the
Set-VBRNotificationOptionscmdlet. Specify the following settings:- Set the
$notificationsvariable as theNotificationOptionsparameter value. - Provide the
EnableAdditionalNotificationparameter. - Provide the
UseNotificationOptionsparameter. - Provide the
NotifyOnErrorparameter.
- Set the
Related Commands
New-VBRNotificationOptionsCreates new job notification options.