Set-VBRMalwareDetectionObjectAsClean
Short Description
Sets the clean status for machines and hosts detected by malware.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Set-VBRMalwareDetectionObjectAsClean [-Object] <VBRMalwareDetectionObject[]> [-Reason <String>] [-MarkAllRestorePoints] [-ExcludeObjectFromDetection] [<CommonParameters>] |
Detailed Description
This cmdlet sets the clean status for machines and hosts that were detected by malware. You can also mark restore points associated with these machines and hosts as clean.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
ExcludeObjectFromDetection |
Defines that the cmdlet will add hosts and machines marked as clean to malware exclusions to prevent them from future rescans.
Default: |
|
False |
Named |
False |
|
MarkAllRestorePoints |
Defines that the cmdlet will mark restore points that contain backups of machines as clean.
Default: |
|
False |
Named |
False |
|
Object |
Specifies an array of IDs of hosts and machines that were detected by malware. The cmdlet will mark them as clean.
Accepts the |
True |
0 |
True (ByPropertyName, ByValue) |
|
|
Reason |
Specifies a reason for future reference. |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
Examples
Settings Clean State for Machines and Restore Points
This cmdlet sets the clean status for the f2957c9c-2201-4473-9247-0590de4cc412 and 935d3e38-d444-4ef4-abae-d43f2f8b4ba1 machines and restore points associated with backups of these machines.
|
$machine = Get-VBRMalwareDetectionObject -ObjectId "f2957c9c-2201-4473-9247-0590de4cc412", "935d3e38-d444-4ef4-abae-d43f2f8b4ba1" Set-VBRMalwareDetectionObjectAsClean -Object $machine -ExcludeObjectFromDetection -MarkAllRestorePoints |
Perform the following steps:
- Run the
Get-VBRMalwareDetectionObjectReturns machines affected by malware. cmdlet. Specify theObjectIdparameter value. Save the result to the$machinevariable. - Run the
Set-VBRMalwareDetectionObjectAsCleancmdlet. Set the$machinevariable as theObjectparameter value. Provide theExcludeObjectFromDetectionand theMarkAllRestorePointsparameters.
Related Commands
Get-VBRMalwareDetectionObjectReturns machines affected by malware.