--- title: "New-VBRNASBackupPathMask" description: "This cmdlet creates the VBRNASBackupPathMask object. This object defines an exclusion path for mask for a file backup job. You can exclude either a specific folder or the whole file share." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/new-vbrnasbackuppathmask.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Unstructured Data Backup > Working with Unstructured Data Source Jobs > Adding File Backup Jobs > New-VBRNASBackupPathMask" dateModified: "2026-08-19" --- # New-VBRNASBackupPathMask ## Short Description Defines an exclusion mask for path for a file backup job. **Product Edition**: Standard, Enterprise, Enterprise Plus, Veeam Universal License ## Syntax This cmdlet provides the following parameter sets: ## Detailed Description This cmdlet creates the `VBRNASBackupPathMask` object. This object defines an exclusion path for mask for a file backup job. You can exclude either a specific folder or the whole file share. ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

ForAllShares

Defines that the cmdlet will exclude multiple paths under file shares.

Note: You can exclude multiples paths for only for root file shares.

SwitchParameter

False

Named

False

Path

Specifies a path to the folder that you want to exclude.

String

True

Named

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). ## Output Object The cmdlet returns the `VBRNASBackupPathMask` object that defines an exclusion path for mask for a file backup job. ## Examples ::: example ### Example 1. Defining Exclusion Paths for File Backup Job This command defines the `\\EV-NIMBLE\SMB_Share\New Inc-Exc` exclusion path. ``` $exclusionMask = New-VBRNASBackupPathMask -Path "\\EV-NIMBLE\SMB_Share\New Inc-Exc" ``` ::: ::: example ### Example 2. Defining Exclusion Paths for Multiple File Shares This command defines that the `New Inc-Exc folder` will be excluded from all file shares. ``` $exclusionMask = New-VBRNASBackupPathMask -Path "New Inc-Exc" -ForAllShares ``` :::