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
|
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. |
|
False |
Named |
False |
|
Session |
Specifies a job session. The cmdlet will return a malware detection session related to this job session.
Accepts the |
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:
- Run the
Get-VBRJobReturns existing jobs. cmdlet. Specify theNameparameter value. Save the result to the$jobvariable. - Run the
Get-VBRSessionReturns job sessions. cmdlet. Set the$jobvariable as theJobparameter value. Save the result to the$sessionvariable. - Run the
Get-VBRMalwareDetectionTaskSessioncmdlet. Set the$session[0]variable as theSessionparameter value. Save the result to the$tsvariable.
Related Commands
Get-VBRJobReturns existing jobs.Get-VBRSessionReturns job sessions.