Get-VBRScanTaskSession
Short Description
Returns scan task sessions performed during the specified SureBackup session.
Product Edition: Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Get-VBRScanTaskSession -InitiatorSessionId <Guid[]> [<CommonParameters>] |
Detailed Description
This cmdlet returns scan task sessions performed during the specified SureBackup session.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
InitiatorSessionId |
Specifies the array of SureBackup task sessions IDs. The cmdlet will return task IDs performed during these sessions.
Accepts the |
|
True |
Named |
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 VBRSureBackupScanTaskSession object that contains scan tasks performed during the SureBackup session.
Examples
Getting List of SureBackup Scan Task Sessions
This example shows how to get the list of scan task sessions performed during the SureBackup job session with 8e3cf452-23cb-490a-a86a-f802940e26df ID.
|
$sbs = Get-VBRSureBackupSession -ID 8e3cf452-23cb-490a-a86a-f802940e26df $ts = Get-VBRSureBackupTaskSession -Session $sbs Get-VBRScanTaskSession -InitiatorSessionId $ts.id |
Perform the following steps:
- Run the
Get-VBRSureBackupSessionReturns SureBackup sessions that have been run. cmdlet. Specify theIDparameter. Save the result to the$sbsvariable. - Run the
Get-VBRSureBackupTaskSessionReturns tasks performed during the specified SureBackup session. cmdlet. Set the$sbsvariable as theSessionparameter value. Save the result to the$tsvariable. - Run the
Get-VBRScanTaskSessioncmdlet. Set the$ts.idvariable as theInitiatorSessionIdparameter value.
Related Commands
Get-VBRSureBackupSessionReturns SureBackup sessions that have been run.Get-VBRSureBackupTaskSessionReturns tasks performed during the specified SureBackup session.