--- title: "Get-VBRNASBackupTaskSession (obsolete)" description: "This cmdlet returns tasks for file backup sessions. Veeam Backup & Replication creates a separate task for each file share within the session." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/get-vbrnasbackuptasksession.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Obsolete Cmdlets > Get-VBRNASBackupTaskSession (obsolete)" dateModified: "2026-08-19" --- # Get-VBRNASBackupTaskSession ## Short Description Returns tasks for file backup sessions. ::: note This cmdlet is obsolete. Run the [`Get-VBRUnstructuredBackupTaskSession`](get-vbrunstructuredbackuptasksession.md) cmdlet instead. ::: **Product Edition**: Standard, Enterprise, Enterprise Plus, Veeam Universal License ## Syntax This cmdlet provides the following parameter sets: ## Detailed Description This cmdlet returns tasks for file backup sessions. Veeam Backup & Replication creates a separate task for each file share within the session. ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Id

Specifies an array of IDs for file share backup session tasks. The cmdlet will return tasks with these IDs.

Guid[]

True

Named

False

Name

Specifies an array of file share names. The cmdlet will return tasks that run for file shares with these names.

String[]

True

Named

False

Session

Specifies the file share backup session. The cmdlet will return tasks that run within the file share backup session with this ID.

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

VBRNASBackupSession

True

Named

False

`` 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). ## Output Object [`VBRNASBackupTaskSession`](vbrunstructuredbackuptasksession.md) ## Examples ::: example ### Example 1. Getting Backup Session Tasks for File Share by Its Name This command returns all tasks run for the `\\fileserv05\Documents` file share. ``` Get-VBRNASBackupSession -Name "\\fileserv05\Documents" ``` ::: ::: example ### Example 2. Getting Backup Session Tasks by Task IDs This command returns the `49664A5F-9C55-4A1F-8E6A-1CD5705A684B` and `42696B53-6FEC-4148-9354-AA9E4B52DED9` backup session tasks. ``` Get-VBRNASBackupSession -Id ("49664A5F-9C55-4A1F-8E6A-1CD5705A684B", "42696B53-6FEC-4148-9354-AA9E4B52DED9") ``` ::: ::: example ### Example 3. Getting Backup Session Tasks for Backup Session This command returns tasks that run within the `42636B53-6FEC-4148-9354-BB9E4B52DED9` backup session. ``` $session = Get-VBRNASBackupSession -Id "42636B53-6FEC-4148-9354-BB9E4B52DED9" Get-VBRNASBackupTaskSession -Session $session ``` Perform the following steps: 1. Run the [`Get-VBRNASBackupSession`](get-vbrnasbackupsession.md) cmdlet. Specify the `Id` parameter value. Save the result to the `$session` variable. 2. Run the `Get-VBRNASBackupTaskSession` cmdlet. Set the `$session` variable as the `Session` parameter value. ::: ## Related Commands [`Get-VBRNASBackupSession`](get-vbrnasbackupsession.md)