--- title: "Get-VBRMalwareDetectionExclusion" description: "This cmdlet returns a list of machines added to malware exclusions. You can filter the returned exclusions by specifying any combination of the parameters described below." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/get-vbrmalwaredetectionexclusion.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Managing Security Settings > Malware Detection > Get-VBRMalwareDetectionExclusion" dateModified: "2026-08-19" --- # Get-VBRMalwareDetectionExclusion ## Short Description Returns a list of machines added to malware exclusions. **Product Edition**: Standard, Enterprise, Enterprise Plus, Veeam Universal License ## Syntax ``` Get-VBRMalwareDetectionExclusion [-Entity ] [-Id ] [-Name ] [-Platform ] [-Note ] [-ExcludedPaths ] [-ExcludedActivities ] [-AutoScanDisabled ] [-ExcludeEntireObject ] [] ``` ## Detailed Description This cmdlet returns a list of machines added to malware exclusions. You can filter the returned exclusions by specifying any combination of the parameters described below. ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

AutoScanDisabled

Filters the returned exclusions by the autoscan setting:

  • $True: returns only exclusions where autoscan is disabled.
  • $False: returns only exclusions where autoscan is enabled.

Boolean

False

Named

False

Entity

Specifies a machine for which you want to return the exclusion. The cmdlet will return the exclusion that matches this machine.

Accepts the following types of objects:

Object

False

Named

True (ByPropertyName, ByValue)

ExcludedActivities

Specifies the array of malware detection activities. The cmdlet will return exclusions that contain at least one of the specified activities. If you pass an empty array, the cmdlet will return only exclusions that have no excluded activities.

VBRActivityType[]

False

Named

False

ExcludedPaths

Specifies the array of file or folder paths. The cmdlet will return exclusions whose excluded paths contain at least one of the specified path values (case-insensitive substring match). If you pass an empty array, the cmdlet will return only exclusions that have no excluded paths.

String[]

False

Named

False

ExcludeEntireObject

Filters the returned exclusions by whether the entire machine is excluded:

  • $True: returns only exclusions where the entire machine is excluded from all automated malware detection mechanisms.
  • $False: returns only partial exclusions that target specific excluded paths, excluded activities, or autoscan.

Boolean

False

Named

False

Id

Specifies the ID of an exclusion. The cmdlet will return the exclusion with this ID.

Guid

False

Named

False

Name

Specifies the name of an excluded machine. The cmdlet will return the exclusion for the machine with this name.

String

False

Named

False

Note

Specifies a note value. The cmdlet will return exclusions whose note contains this value (case-insensitive substring match).

String

False

Named

False

Platform

Specifies the platform of the excluded machine. The cmdlet will return exclusions for machines on this platform. Possible values:

  • VMWare
  • HyperV
  • vCD
  • LinuxPhysical
  • WindowsPhysical
  • CustomPlatform

VBRPlatform

False

Named

False

`` 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 [`VBRMalwareDetectionExclusion`](vbrmalwaredetectionexclusion.md) ## Examples ::: example ### Example 1. Getting All Machines Added to Malware Exclusions This command returns a list of all machines added to malware exclusions. ``` Get-VBRMalwareDetectionExclusion ``` ::: ::: example ### Example 2. Getting Exclusion for Specific VMware vSphere VM This example shows how to return the malware exclusion for the `WinSrv2049` VM. ``` $vm = Find-VBRViEntity -Name "WinSrv2049" Get-VBRMalwareDetectionExclusion -Entity $vm ``` Perform the following steps: 1. Run the [`Find-VBRViEntity`](find-vbrvientity.md) cmdlet. Specify the `Name` parameter value. Save the result to the `$vm` variable. 2. Run the `Get-VBRMalwareDetectionExclusion` cmdlet. Set the `$vm` variable as the `Entity` parameter value. ::: ::: example ### Example 3. Getting Exclusions With Disabled Autoscan This command returns all exclusions where autoscan is disabled. ``` Get-VBRMalwareDetectionExclusion -AutoScanDisabled:$True ``` ::: ## Related Commands [`Find-VBRViEntity`](find-vbrvientity.md)