Help Center
Choose product document...
Veeam Backup & Replication 9.5
PowerShell Reference

Set-VBRCSVContainer

Short Description

Modifies a scope of computers listed in a CSV file.

Applies to

Product Edition: Standard, Enterprise, Enterprise Plus

Requires Veeam Agent for Microsoft Windows/Veeam Agent for Linux license

Syntax

Set-VBRCSVContainer -Container <VBRCSVContainer> [-Path <string>] [-NetworkCredentials <CCredentials>] [-MasterCredentials <CCredentials>] [-UseCustomCredentials] [-CustomCredentials <VBRCSVCustomCredentials[]>] [<CommonParameters>]

Detailed Description

This cmdlet modifies the VBRCSVContainer object. This object contains the scope of computers you want to add to a protection group. To modify the settings of the scope, enter the corresponding parameters with new values. The parameters you omit will remain unchanged.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

Container

Specifies the scope of computers that are listed in a CSV file.

Accepts VBRCSVContainer type.

True

Named

True (ByValue,
ByProperty
Name)

False

Path

Specifies the path to the CSV file. The cmdlet will import computers' DNS names or IP addresses from this file.

False

Named

True (ByProperty
Name)

False

MasterCredentials

Specifies Master account credentials for authenticating with all computers listed in a CSV file.

For authenticating with computers that require different credentials, Veeam Backup & Replication uses custom credentials. If you want to use custom credentials for some computers, set the UseCustomCredentials parameter.

False

Named

True (ByProperty
Name)

False

Network
Credentials

Specifies the credentials you want to use for authenticating with the shared folder. The cmdlet will use these credentials if a CSV file is located on a file share.

False

Named

True (ByProperty
Name)

False

UseCustom
Credentials

Indicates that you want to use custom credentials for authenticating with some computers listed in a CSV file.

To specify custom credentials, use the CustomCredentials parameter.

False

Named

True (ByProperty
Name)

False

CustomCredentials

Specifies custom credentials for authenticating with associated computers.

Accepts VBRCSVCustomCredentials[] type.

False

Named

True (ByProperty
Name)

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.

Return Type

VBRCSVContainer

Example

This example shows how to change Master account credentials for a protection group.

You will need to perform the following steps:

  1. Run Get-VBRProtectionGroup to get the protection group whose settings you want to modify. Save the result to the $group variable.
  2. Get the protection scope. Use the Container property of the protection group object saved to the $group variable. Save the result to the $csv variable.
  3. Modify the protection scope. To do this, run Set-VBRCSVContainer with the $csv variable and MasterCredentials parameter. Save the result to the $newcsv variable.
  4. Run Set-VBRProtectionGroup with the $group and $newcsv variables.

PS C:\PS> $group = Get-VBRProtectionGroup -Name "Support PG"

PS C:\PS> $csv = $group.Container

PS C:\PS> $newcsv = Set-VBRCSVContainer -Container $csv -MasterCredentials "supporteast\dstones"

PS C:\PS> Set-VBRProtectionGroup -ProtectionGroup $group -Container $newcsv

Related Commands

Get-VBRProtectionGroup

Set-VBRProtectionGroup

Veeam Large Logo

User Guide for VMware vSphere

User Guide for Microsoft Hyper-V

Enterprise Manager User Guide

Veeam Cloud Connect Guide

Veeam Agent Management Guide

Veeam Backup Explorers User Guide

PowerShell Reference

RESTful API Reference

Veeam Backup FREE Edition User Guide

Veeam Backup for Microsoft Office 365

Veeam ONE Documentation

Veeam Agent for Windows Documentation

Veeam Agent for Linux Documentation

Veeam Management Pack Documentation