Remove-VBRNASServer (obsolete)

Short Description

Removes file shares that are added to the Veeam Backup & Replication infrastructure.

Note

This cmdlet is obsolete. Run the Remove-VBRUnstructuredServerRemoves unstructured data sources from the inventory. cmdlet instead.

Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

Remove-VBRNASServer -Server <VBRNASServer[]> [-WhatIf] [-Confirm] [<CommonParameters>]

Detailed Description

This cmdlet removes file shares that are added to the Veeam Backup & Replication infrastructure.

Parameters

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Server

Specifies an array of file shares. The cmdlet will remove these file shares from the Veeam Backup & Replication infrastructure.

Accepts the VBRNASServer[] object. To get this object, run the Get-VBRNASServerReturns file shares that are added to the Veeam Backup & Replication infrastructure. This cmdlet is obsolete. Run the Get-VBRUnstructuredServer cmdlet instead. cmdlet.

VBRNASServer[]

True

Named

True (ByPropertyName, ByValue)

Confirm

Defines that the cmdlet will display a prompt that asks if the user is sure that he wants to continue.

Note: Microsoft PowerShell enables the Confirm parameter for this cmdlet by default. To disable this option, set the parameter value to $false. That is, Confirm:$false.

SwitchParameter

False

Named

False

WhatIf

Defines that the cmdlet will write a message that describes the effects of running the cmdlet without actually performing any action.

SwitchParameter

False

Named

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Examples

Remove-VBRNASServer (obsolete)Example 1. Removing all File Shares

This example shows how to remove all file shares that are added to the Veeam Backup & Replication infrastructure.

$fileshare = Get-VBRNASServer

Remove-VBRNASServer -Server $fileshare

Perform the following steps:

  1. Run the Get-VBRNASServerReturns file shares that are added to the Veeam Backup & Replication infrastructure. This cmdlet is obsolete. Run the Get-VBRUnstructuredServer cmdlet instead. cmdlet. Save the result to the $fileshare variable.
  2. Run the Remove-VBRNASServer cmdlet. Set the $fileshare variable as the Server parameter value.

Remove-VBRNASServer (obsolete)Example 2. Removing Specific File Share

This example shows how to remove the \\WinSRV2049\Documents file share that is added to the Veeam Backup & Replication infrastructure. The cmdlet will display a prompt that asks if the user is sure that he wants to continue.

$fileshare = Get-VBRNASServer -Name "\\WinSRV2049\Documents"

Remove-VBRNASServer -Server $fileshare -Confirm

Perform the following steps:

  1. Run the Get-VBRNASServerReturns file shares that are added to the Veeam Backup & Replication infrastructure. This cmdlet is obsolete. Run the Get-VBRUnstructuredServer cmdlet instead. cmdlet. Save the result to the $fileshare variable.
  2. Run the Remove-VBRNASServer cmdlet. Set the $fileshare variable as the Server parameter value. Provide the Confirm parameter.

Get-VBRNASServerReturns file shares that are added to the Veeam Backup & Replication infrastructure. This cmdlet is obsolete. Run the Get-VBRUnstructuredServer cmdlet instead.

Page updated 2026-08-19

Page content applies to build 13.1.1.18