Start-VBRScanUnstructuredBackup
Short Description
Starts a scan of file backups and object storage backups with antivirus or YARA scan.
Applies to
Product Edition: Enterprise, Enterprise Plus, Veeam Universal License
Syntax
Start-VBRScanUnstructuredBackup -Backup <VBRUnstructuredBackup> -ScanMode <VBRRestorePointScanMode> [-RestorePoint <VBRUnstructuredBackupRestorePoint>] [-EnableAntivirusScan] [-EnableYARAScan] [-YARARule <String>] [-FromPointInTime <DateTime>] [-ToPointInTime <DateTime>] [-EnableEntireImageScan] [-RunAsync] [<CommonParameters>] |
Detailed Description
This cmdlet starts an on-demand scan of file backup or object storage backup restore points with Veeam Threat Hunter or YARA scan. Veeam Backup & Replication inspects unstructured data stored in NAS backup repositories for malware and suspicious files.
An on-demand scan always runs as a full scan: the cmdlet enumerates all files in the restore point regardless of prior scan history.
Parameters
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
Backup |
Specifies the file backup or object storage backups that you want to scan. |
Accepts the VBRUnstructuredBackup object. To get this object, run the Get-VBRUnstructuredBackup cmdlet. |
True |
Named |
False |
ScanMode |
Specifies one of the following scan modes:
|
VBRRestorePointScanMode |
True |
Named |
False |
RestorePoint |
Specifies the restore point that you want to scan. Use this parameter when the ScanMode parameter is set to Specific. |
Accepts the VBRUnstructuredBackupRestorePoint object. To get this object, run the Get-VBRUnstructuredBackupRestorePoint cmdlet. |
False |
Named |
False |
EnableAntivirusScan |
Defines that Veeam Backup & Replication will scan the file backup or object storage backup restore point with Veeam Threat Hunter or a configured third-party antivirus engine. You must provide at least one of the following parameters: EnableAntivirusScan or EnableYARAScan. Default: False. |
SwitchParameter |
False |
Named |
False |
EnableYARAScan |
Defines that Veeam Backup & Replication will scan the file backup or object storage backup restore point with the specified YARA rule. If you do not provide this parameter, Veeam Backup & Replication will not scan the restore point with a YARA rule. Use the YARARule parameter to specify the YARA rule. Default: False. |
SwitchParameter |
False |
Named |
False |
YARARule |
Specifies the YARA rule. Veeam Backup & Replication will scan the file backup or object storage backup restore point with this rule. Veeam Backup & Replication searches for YARA rules in the YaraRules folder. The default path is: C:\Program Files\Veeam\Backup and Replication\Backup\YaraRules. To use a YARA rule, you must specify its name and extension. Veeam Backup & Replication accepts only .yar and .yara extensions. |
String |
False |
Named |
False |
FromPointInTime |
Specifies the date and time. The cmdlet will scan restore points that were created starting from this date and time. |
Accepts the DateTime object. To get this object, run the Get-Date cmdlet. |
False |
Named |
False |
ToPointInTime |
Specifies the date and time. The cmdlet will scan restore points that were created by this date and time. |
Accepts the DateTime object. To get this object, run the Get-Date cmdlet. |
False |
Named |
False |
EnableEntireImageScan |
Defines that the cmdlet will scan all restore points in the NAS backup even after it finds the first affected restore point. Note: For unstructured backups, the cmdlet always enumerates all files in each scanned restore point regardless of the value you set. The parameter is preserved for compatibility with the base scan workflow. Default: False. |
SwitchParameter |
False |
Named |
False |
RunAsync |
Defines that the command returns immediately without waiting for the task to complete. |
SwitchParameter |
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. Scanning NAS Backup with Antivirus Scan
|
This example shows how to scan the most recent restore point of a file backup or object storage backup with the antivirus scan.
Perform the following steps:
|
Example 2. Scanning Specific NAS Restore Point with YARA Rule
|
This example shows how to scan a specific NAS restore point with a YARA rule.
Perform the following steps:
|
Related Commands