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

New-VBRCSVCustomCredentials

Short Description

Specifies custom credentials for authenticating with 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

New-VBRCSVCustomCredentials -HostName <string> [-Credentials <CCredentials>]  [<CommonParameters>]

Detailed Description

This cmdlet specifies custom credentials for authenticating with computers you want to add to a protection group from a CSV file. Veeam Backup & Replication uses these credentials for Veeam Agent deployment and backup\restore activities.

By default, Veeam Backup & Replication uses 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.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

HostName

Specifies DNS-name or IP address of the computer for which you want to specify credentials.

True

Named

True (ByValue,
ByProperty
Name)

False

Credentials

Specifies custom credentials for authenticating with computers listed in a CSV file.

If not set, Veeam Backup & Replication will use Master account credentials for authenticating with associated computers.

Accepts CCredentials or string (user name) types.

NOTE: for string type, enter a user name in the "Domain\Username" format.

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

VBRCSVCustomCredentials

Example

This example shows how to specify custom credentials for computers from a CSV file.

You will need to perform the following steps:

  1. Run Get-Credential to create a credential object you want to use for authenticating with computers. Type the credentials and save the result to the $ccreds variable.
  2. Run New-VBRCSVCustomCredentials with the $ccreds variable. Use the ForEach statement to apply the same credentials to multiple computers.

PS C:\PS> $ccreds = Get-Credential

PS C:\PS> @("172.19.51.55", "sup-v8931") | ForEach { New-VBRCSVCustomCredentials -HostName $_ -Credentials $ccreds}

Example 2

This example shows how to specify master credentials for the computer from a CSV file.

PS C:\PS> New-VBRCSVCustomCredentials -HostName 172.19.51.50

Related Commands

New-VBRCSVContainer

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

Backup and Restore of SQL Server Databases

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