--- title: "Get-VBRMalwareDetectionObject" description: "This cmdlet returns machines affected by malware." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/get-vbrmalwaredetectionobject.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Managing Security Settings > Malware Detection > Get-VBRMalwareDetectionObject" dateModified: "2026-08-19" --- # Get-VBRMalwareDetectionObject ## Short Description Returns machines affected by malware. **Product Edition**: Standard, Enterprise, Enterprise Plus, Veeam Universal License ## Syntax This cmdlet provides the following parameter sets: ## Detailed Description This cmdlet returns machines affected by malware. ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

ObjectId

Specifies an array of IDs of hosts and machines affected by malware. The cmdlet will return hosts and machines by these IDs.

Guid[]

True

Named

True (ByPropertyName, ByValue)

ObjectName

Specifies an array of names of hosts and machines affected by malware. The cmdlet will return hosts and machines with these names.

String[]

True

Named

True (ByPropertyName, ByValue)

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see [ Microsoft Docs](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-7). ## Output Object [`VBRMalwareDetectionObject`](vbrmalwaredetectionobject.md) ## Examples ::: example ### Example 1. Getting Malware Affected Machines by IDs This command returns the `f2957c9c-2201-4473-9247-0590de4cc412` and `935d3e38-d444-4ef4-abae-d43f2f8b4ba1` machines affected by malware. ``` Get-VBRMalwareDetectionObject -ObjectId "f2957c9c-2201-4473-9247-0590de4cc412", "935d3e38-d444-4ef4-abae-d43f2f8b4ba1" ``` ::: ::: example ### Example 2. Getting Malware Affected Machines by Names This command returns the `WinHost2045` and `LinHost2049` machines affected by malware. ``` Get-VBRMalwareDetectionObject -ObjectName "WinHost2045", "LinHost2049" ``` :::