--- title: "New-VBRFileToTapeObject" description: "Defines settings of the source for the files to tape job. Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License This cmdlet creates the VBRFileToTapeObject object." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/new-vbrfiletotapeobject.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Tape Devices > Tape Jobs > New-VBRFileToTapeObject" dateModified: "2026-08-19" --- # New-VBRFileToTapeObject ## Short Description Defines settings of the source for the files to tape job. **Product Edition**: Standard, Enterprise, Enterprise Plus, Veeam Universal License ## Syntax ``` New-VBRFileToTapeObject -NASServer [-Path ] [-IncludeMask ] [-ExcludeMask ] [] ``` ## Detailed Description This cmdlet creates the [`VBRFileToTapeObject`](vbrfiletotapeobject.md) object. This object contains settings of files or directories that you want to add to a file to tape job. ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

ExcludeMask

Specifies files that you want to exclude from the file to tape job.

String

False

Named

False

IncludeMask

Specifies files that you want to back up with the file to tape job.

String

False

Named

False

NASServer

Specifies network shared folders and file servers. Veeam Backup & Replication will back up these shared folders and file servers with the file to tape job.

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

VBRUnstructuredServer

True

Named

False

Path

Specifies the target file path.

String

False

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 [`VBRFileToTapeObject`](vbrfiletotapeobject.md) ## Examples ::: example ### Creating Object for File to Tape Job This example shows how to create an object for a file to tape job. The object contains a folder on the `fileserver08` server. ``` $server = Get-VBRUnstructuredServer -Name "fileserver08.tech.local" $folder = New-VBRFileToTapeObject -NASServer $server -Path "D:\Summary Reports\Payroll Reports" ``` Perform the following steps: 1. Run the [`Get-VBRUnstructuredServer`](get-vbrunstructuredserver.md) cmdlet. Specify the `Name` parameter value. Save the result to the `$server` variable. 2. Run the `New-VBRFileToTapeObject` cmdlet. Set the `$server` variable as the `NASServer` parameter value. Specify the `Path` parameter value. Save the result to the `$folder` variable to be used with other cmdlets. ::: ## Related Commands [`Get-VBRUnstructuredServer`](get-vbrunstructuredserver.md)