--- title: "Get-VSBTaskSession (obsolete)" description: "This cmdlet returns the list of tasks performed during the specified SureBackup session. Run the Get-VBRTaskSession cmdlet to get the tasks for backup, replication and backup copy sessions." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/get-vsbtasksession.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Obsolete Cmdlets > Get-VSBTaskSession (obsolete)" dateModified: "2026-08-19" --- # Get-VSBTaskSession ## Short Description Returns tasks performed during the specified SureBackup session. ::: note This cmdlet is obsolete. The cmdlet will still work but may not be supported in further versions. Use the [`Get-VBRSureBackupTaskSession`](get-vbrsurebackuptasksession.md) cmdlet instead. ::: **Platform**: VMware, Hyper-V **Product Edition**: Enterprise, Enterprise Plus, Veeam Universal License ## Syntax ``` Get-VSBTaskSession [-Name ] [-Session] [] ``` ## Detailed Description This cmdlet returns the list of tasks performed during the specified SureBackup session. Run the [`Get-VBRTaskSession`](get-vbrtasksession.md) cmdlet to get the tasks for backup, replication and backup copy sessions. ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Name

Specifies the array of SureBackup job names. The cmdlet will return tasks performed for VMs in these jobs during the selected job session.

String[]

False

Named

False

Session

Specifies the array of SureBackup sessions. The cmdlet will return tasks performed during these sessions.

Accepts the CSbSession object. To get this object, run the Get-VSBSession cmdlet.

CSbSession

True

0

True (ByPropertyName, ByValue)

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see [ Microsoft Docs](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-7). ## Examples ::: example ### Example 1. Getting List of Tasks for Selected SureBackup Session [Using Pipeline] This example shows how to get the list of tasks performed for the `DC` and `DNS` VMs in the `Exchange SureJob` SureBackup job session. ``` Get-VSBSession -Name "Exchange SureJob" | Get-VSBTaskSession -Name "DC", "DNS" ``` Perform the following steps: 1. Run the [`Get-VSBSession`](get-vsbsession.md) cmdlet. Specify the `Name` parameter value. 2. Pipe the cmdlet output to the `Get-VSBTaskSession` cmdlet. Specify the `Name` parameter value. ::: ::: example ### Example 2. Getting List of Tasks for Selected SureBackup Session [Using Variable] This example shows how to get the list of tasks performed for the `DC` and `DNS` VMs in the `Exchange SureJob` SureBackup job session. ``` $ExchangeSureJob = Get-VSBSession -Name "Exchange SureJob" Get-VSBTaskSession -Session $ExchangeSureJob -Name "DC", "DNS" ``` Perform the following steps: 1. Run the [`Get-VSBSession`](get-vsbsession.md) cmdlet. Specify the `Name` parameter value. Save the result to the `$ExchangeSureJob` variable. 2. Run the `Get-VSBTaskSession` cmdlet. Set the `$ExchangeSureJob` variable as the `Session` parameter value. Specify the `Name` parameter value. ::: ## Related Commands [`Get-VSBSession`](get-vsbsession.md)