Get-VBRMalwareDetectionTaskSession

Short Description

Returns malware detection session.

Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

Get-VBRMalwareDetectionTaskSession [-Session] <VBRSession> [-Name <String[]>] [<CommonParameters>]

Detailed Description

This cmdlet returns malware detection session.

Parameters

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-VBRSessionReturns job sessions. cmdlet.

VBRSession

True

0

True (ByPropertyName, ByValue)

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Output Object

The cmdlet returns the VBRMalwareDetectionTaskSession object that contains malware detection session.

Examples

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-VBRJobReturns existing jobs. cmdlet. Specify the Name parameter value. Save the result to the $job variable.
  2. Run the Get-VBRSessionReturns job sessions. 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.

Page updated 2026-08-19

Page content applies to build 13.1.1.18