Get-VBRMalwareDetectionTaskSession

Short Description

Returns malware detection session.

Applies to

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

Parameter

Description

Type

Required

Position

Accept Pipeline Input

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.

True

0

True (ByPropertyName, ByValue)

Name

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

String[]

False

Named

False

<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-VBRJob cmdlet. Specify the Name parameter value. Save the result to the $job variable.
  2. Run the Get-VBRSession 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

Page updated 8/14/2024

Page content applies to build 12.2.0.334