--- title: "Get-VBRMalwareDetectionTaskSession" description: "This cmdlet returns malware detection session." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/get-vbrmalwaredetectiontasksession.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Managing Security Settings > Malware Detection > Get-VBRMalwareDetectionTaskSession" dateModified: "2026-08-19" --- # Get-VBRMalwareDetectionTaskSession ## Short Description Returns malware detection session. **Product Edition**: Standard, Enterprise, Enterprise Plus, Veeam Universal License ## Syntax ``` Get-VBRMalwareDetectionTaskSession [-Session] [-Name ] [] ``` ## Detailed Description This cmdlet returns malware detection session. ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Name

Specifies an array of machines. The cmdlet will return a malware detection session for these machines.

String[]

False

Named

False

Session

Specifies a job session. The cmdlet will return a malware detection session related to this job session.

Accepts the VBRSession object. To create this object, run the Get-VBRSession cmdlet.

VBRSession

True

0

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 The cmdlet returns the `VBRMalwareDetectionTaskSession` object that contains malware detection session. ## Examples ::: example ### Getting Malware Detection Sessions This example shows how to get malware detection session for the `Monthly backup` job. ``` $job = Get-VBRJob -Name "Monthly backup" $session = Get-VBRSession -Job $job $ts = Get-VBRMalwareDetectionTaskSession -Session $session[0] ``` Perform the following steps: 1. Run the [`Get-VBRJob`](get-vbrjob.md) cmdlet. Specify the `Name` parameter value. Save the result to the `$job` variable. 2. Run the [`Get-VBRSession`](get-vbrsession.md) cmdlet. Set the `$job` variable as the `Job` parameter value. Save the result to the `$session` variable. 3. Run the `Get-VBRMalwareDetectionTaskSession` cmdlet. Set the `$session[0]` variable as the `Session` parameter value. Save the result to the `$ts` variable. ::: ## Related Commands - [`Get-VBRJob`](get-vbrjob.md) - [`Get-VBRSession`](get-vbrsession.md)