Set-VBRMalwareDetectionExclusion
Short Description
Modifies settings of machines added to malware exclusions.
Applies to
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
Set-VBRMalwareDetectionExclusion -Exclusion <VBRMalwareDetectionExclusion> [-Note <String>] [-ExcludeEntireObject <Boolean>] [-ExcludedPaths <String[]>] [-ExcludedActivities <VBRActivityType[]>] [-AutoScanDisabled <Boolean>] [<CommonParameters>] |
Detailed Description
This cmdlet modifies settings of a machine added to malware exclusions. You can switch the exclusion to a full exclusion with the ExcludeEntireObject parameter, or change individual settings: the note, the list of excluded paths, the list of excluded activities, or the autoscan setting.
|
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 |
|---|---|---|---|---|---|
Exclusion |
Specifies an exclusion rule. The cmdlet will modify settings of this rule. |
Accepts the VBRMalwareDetectionExclusion object. To get this object, run the Get-VBRMalwareDetectionExclusion cmdlet. |
True |
Named |
True (ByPropertyName, ByValue) |
AutoScanDisabled |
Defines whether Veeam Backup & Replication will run autoscan for the machine:
|
Boolean |
False |
Named |
False |
ExcludedActivities |
Specifies an array of malware detection activities that Veeam Backup & Replication will skip for the machine. The following activity values are supported:
Note: The YaraScan and AntivirusScan values are part of the VBRActivityType enumeration but cannot be used with this parameter. Duplicate values in the array are removed before saving. |
False |
Named |
False |
|
ExcludedPaths |
Specifies an array of file or folder paths that Veeam Backup & Replication will skip from file system activity analysis for the machine. Each path must be one of the following:
To exclude a folder, add a trailing slash to the path. Veeam Backup & Replication removes surrounding double quotes and duplicate entries from the array before saving. |
String[] |
False |
Named |
False |
ExcludeEntireObject |
Defines that the machine will be skipped by all file system activity analysis and inline entropy analysis malware detection mechanisms. To switch the exclusion back to a partial exclusion, set the parameter value to $False and use the ExcludedActivities, ExcludedPaths, or AutoScanDisabled parameters to define the new scope. |
Boolean |
False |
Named |
False |
Note |
Specifies a note for a machine. Maximum length: 255 characters. |
String |
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
Examples
Example 1. Modifying Note for Machine Added to Malware Exclusions
|
This example shows how to modify the note for a machine added to malware exclusions.
Perform the following steps:
The Get-VBRMalwareDetectionExclusion cmdlet will return an array of machines. Mind the ordinal number of the necessary machine (in our example, it is the fourth machine in the array).
|
Example 2. Disabling Autoscan for Excluded Machine
|
This example shows how to disable autoscan for an existing exclusion identified by ID.
Perform the following steps:
|
Related Commands