Get-VBRTaskSession
Short Description
Returns tasks performed during a specified session.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Get-VBRTaskSession [-Session] <CBackupSession> [-Name <String[]>] [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>] |
Related Commands
Detailed Description
This cmdlet returns tasks performed during the specified session. You can get the tasks for backup, replication and backup copy sessions.
Run Get-VSBTaskSession to get the tasks for SureBackup session.
Parameters
Parameter | Description | Required | Position | Accept | Accept |
Session | Specifies the session the tasks of which you want to get. | True | 1 | True (ByValue, | False |
Name | Specifies the name of the job object within the session you indicated in the Session parameter the tasks for which you want to get. You can specify multiple names separated by commas. | False | Named | False | True |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command gets the list of tasks performed for the VMs named "DC" and "DNS" in the backup job session named "Exchange Backup". The backup session is obtained with Get-VBRBackupSession and piped down.
PS C:\PS> Get-VBRBackupSession -Name "Exchange Backup" | Get-VBRTaskSession -Name "DC", "DNS" |
Example 2
This command gets the list of tasks performed for the VMs named "DC" and "DNS" in the backup job session represented by the $"Exchange Session" variable. The backup session is obtained with Get-VBRBackupSession and assigned to the variable beforehand.
PS C:\PS> Get-VBRTaskSession -Session $"Exchange Session" -Name "DC", "DNS" |