Set-VBRMailNotificationConfiguration
Short Description
Modifies global email notification settings.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Set-VBRMailNotificationConfiguration [-SmtpServer <String>] [-Sender <String>] [-Recipient <String>] [-Subject <String>] [-DailyReportsTime <DateTime>] [-Port <Int32>] [-Timeout <Int32>] [-EnableSSL] [-EnableAuth] [-Credentials <CCredentials>] [-NotifyOnSuccess] [-NotifyOnWarning] [-NotifyOnFailure] [-NotifyOnLastRetryOnly] [-Force] [-AIGenerated <Boolean>] [<CommonParameters>] |
Detailed Description
This cmdlet modifies global email notification settings.
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 |
|---|---|---|---|---|---|
|
AIGenerated |
Specifies whether Veeam Backup & Replication will use AI-generated text in email notification messages. |
|
False |
Named |
False |
|
Credentials |
Specifies the user credentials that Veeam Backup & Replication will use connect to the SMTP server. |
|
False |
Named |
False |
|
DailyReportsTime |
Specifies the time when Veeam Backup & Replication will send daily reports.
Default: |
|
False |
Named |
False |
|
EnableAuth |
Defines that Veeam Backup & Replication will use user credentials to connect to the SMTP server.
Default: |
|
False |
Named |
False |
|
EnableSSL |
Enables SSL. If you provide this parameter, Veeam Backup & Replication will send email notifications over secure connection.
Default: |
|
False |
Named |
False |
|
Force |
Defines that the cmdlet will modify global email notification settings without showing warnings in the PowerShell console. |
|
False |
Named |
False |
|
NotifyOnFailure |
Defines that Veeam Backup & Replication will send email notifications if a job does not complete successfully.
Default:
Note: To disable this option, set the parameter value to |
|
False |
Named |
False |
|
NotifyOnLastRetryOnly |
Defines that Veeam Backup & Replication will send email notifications about the final job status.
Default:
Note: To disable this option, set the parameter value to |
|
False |
Named |
False |
|
NotifyOnSuccess |
Defines that Veeam Backup & Replication will send email notifications if a job runs successfully.
Default:
Note: To disable this option, set the parameter value to |
|
False |
Named |
False |
|
NotifyOnWarning |
Defines that Veeam Backup & Replication will send email notifications if a job completes with a warning.
Default:
Note: To disable this option, set the parameter value to |
|
False |
Named |
False |
|
Port |
Specifies the port number. The SMTP server will send messages over this port.
Default: |
|
False |
Named |
False |
|
Recipient |
Specifies the recipient addresses. |
|
False |
Named |
False |
|
Sender |
Specifies an email address. The cmdlet will send email notifications from this address. |
|
False |
Named |
False |
|
SmtpServer |
Specifies a full DNS name or an IP address of the SMTP server. The cmdlet will use this server to send email notifications. |
|
False |
Named |
False |
|
Subject |
Specifies the subject of the email notifications. |
|
False |
Named |
False |
|
Timeout |
Specifies the connection timeout for the SMTP server.
Default: |
|
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 VBRMailNotificationConfiguration object that contains global email notification settings.
Examples
Modifying Global Email Notification Settings
This command modifies the global notification settings. Veeam Backup & Replication will send notification settings with the following options:
- The IP address of the SMTP server that Veeam Backup & Replication will use to send messages is
172.17.53.12. - The messages are sent from the
backup@tech.comemail address. - The messages are sent to the
administrator@tech.comemail address. - The subject of the messages is
%BackupJobs%. - Veeam Backup & Replication will send messages if the backup job fails.
|
Set-VBRMailNotificationConfiguration -SmtpServer 172.17.53.12 -Sender backup@tech.com -Recipient administrator@tech.com -Subject %BackupJobs% -NotifyOnFailure |
Related Commands