Add-VBRMalwareDetectionExclusion
Short Description
Adds a malware exclusion rule.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Add-VBRMalwareDetectionExclusion [-Entity] <Object> [-Note <String>] [-ExcludedPaths <String[]>] [-ExcludedActivities <VBRActivityType[]>] [-AutoScanDisabled <Boolean>] [-ExcludeEntireObject <Boolean>] [<CommonParameters>] |
Detailed Description
This cmdlet adds a malware exclusion rule for a machine. Depending on the rule, Veeam Backup & Replication either excludes the machine entirely from all automated malware detection mechanisms or applies the granular exclusions that you specify. You can add machines of the following types:
- VMware vSphere VMs.
- Hyper-V VMs.
- VMware Cloud Director VMs.
- Physical and cloud machines discovered by protection groups.
To skip the machine from all automated malware detection mechanisms, set the ExcludeEntireObject parameter to $True. To create a partial exclusion that targets specific algorithms, paths, or autoscan, specify the ExcludedActivities, ExcludedPaths or AutoScanDisabled parameters. You must specify either the ExcludeEntireObject parameter or at least one of the granular exclusion parameters.
Note |
|
Malware exclusions apply only to file system activity analysis (guest indexing data scan) and inline entropy analysis (inline scan). They do not affect scans performed by Veeam Threat Hunter, third-party antivirus software, or YARA. |
Note |
|
If a malware exclusion for the specified machine already exists, the cmdlet throws an error. To modify an existing exclusion, run the |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
AutoScanDisabled |
Defines whether Veeam Backup & Replication will run autoscan for the machine:
Default: |
|
False |
Named |
False |
|
Entity |
Specifies a machine that you want to add to a malware exclusions list. Veeam Backup & Replication will skip this machine from malware scan. Accepts the following types of objects:
|
|
True |
0 |
True (ByPropertyName, ByValue) |
|
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 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. |
|
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 create a partial exclusion that skips only specific algorithms, paths, or autoscan, use the
Default: |
|
False |
Named |
False |
|
Note |
Specifies a note for a machine. Maximum length: 255 characters. |
|
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. Excluding VMware vSphere VM from Malware Scan
|
This example shows how to exclude the
Perform the following steps:
|
Example 2. Excluding Activities and Paths from Malware Scan
|
This example shows how to add a partial exclusion for the
Perform the following steps:
|
Related Commands
Find-VBRViEntityLooks for VMware objects.