Set-VBRCredentials

In this article

    Short Description

    Edits credentials records properties.

    Applies to

    Platform: VMware, Hyper-V

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

    Syntax

    This cmdlet provides parameter sets that allow you to:

    • Modify credentials records

    Set-VBRCredentials -Credential <CCredentials> [-User <string>] [-Password <string>] [-Description <string>][-SshPort <int>] [-Passphrase <string>] [-ElevateToRoot] [-AddToSudoers] [-FailoverToSu] [-RootPassword <string>] [<CommonParameters>]

    • Modify credentials records by specifying the file path to the Linux private key

    Set-VBRCredentials -Credential <CCredentials> [-User <string>] [-Password <string>] [-Description <string>][-SshPort <int>] [-Passphrase <string>] [-ElevateToRoot] [-AddToSudoers] [-FailoverToSu] [-RootPassword <string>][-PrivateKeyPath <string>] [<CommonParameters>]

    • Modify credentials records by specifying the Linux private key

    Set-VBRCredentials -Credential <CCredentials> [-User <string>] [-Password <string>] [-Description <string>][-SshPort <int>] [-Passphrase <string>] [-ElevateToRoot] [-AddToSudoers] [-FailoverToSu] [-RootPassword <string>][-PrivateKey <string>] [<CommonParameters>]

    Detailed Description

    This cmdlet allows editing password or description of a selected credentials record. Select the appropriate syntax for each case.

    Parameters

    Parameter

    Description

    Required

    Position

    Accept
    Pipeline
    Input

    Accept
    Wildcard
    Characters

    Credential

    Specifies the credentials you want to edit.

    True

    Named

    True (ByValue,
    ByProperty
    Name)

    False

    User

    Specifies the user name you want to use for authenticating with the instances of your virtual infrastructure.

    Note that you should use DOMAIN\username format for all hosts except ESX/ESXi hosts.

    False

    Named

    False

    False

    Password

    Specifies the password you want to use for authenticating with the instances of your virtual infrastructure.

    False

    Named

    False

    False

    Description

    Specifies the description for the credentials record. This parameter in non-mandatory, although it is recommended to input this value to make the credential records easily identified.

    False

    Named

    False

    False

    SshPort

    Used for Identity/Pubkey authentication method.

    Specifies the number of the SSH port that you want to use to connect to a Linux server.

    Permitted values: 1 to 65535.

    Default: 22.

    False

    Named

    False

    False

    Passphrase

    Specifies a passphrase for the Linux private key on the backup server.

    False

    Named

    False

    False

    ElevateToRoot

    Used for Identity/Pubkey authentication method.

    Indicates that non-root users are provided with root account privileges.

    False

    Named

    False

    False

    AddToSudoers

    Used for Identity/Pubkey authentication method.

    Indicates that the user account is added to sudoers file.

    Default: (if the ElevateToRoot parameter is set to False) False.

    False

    Named

    False

    False

    FailoverToSu

    Defines that Veeam Backup & Replication will use the su command if the sudo command fails.

    If you provide this parameter, Veeam Backup & Replication will failover to the su command if sudo command fails. Otherwise, if sudo fails Veeam Backup & Replication will not be able to add Linux credentials records.

    False

    Named

    False

    False

    RootPassword

    Used for Identity/Pubkey authentication method.

    Indicates that the root password is used for authentication.

    False

    Named

    False

    False

    PrivateKeyPath

    Used for Identity/Pubkey authentication method.

    Specifies the path to the private key. Use this parameter to specify the private key for the LinuxPubKey option of the Type parameter.

    False

    Named

    False

    False

    PrivateKey

    Used for Identity/Pubkey authentication method.

    Specifies the private key.

    False

    Named

    False

    False

    <CommonParameters>

    This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.

    Example 1

    This command sets a new password for the credentials record with name "Administrator". The new password is "Password_1". The credentials  record is obtained with Get-VBRCredentials and piped down.

    Get-VBRCredentials -Name "Administrator" | Set-VBRCredentials -Password "Password_1"

    Example 2

    This command sets a new description for the credentials record. The credentials  record is obtained with Get-VBRCredentials and assigned to the variable beforehand.

    Set-VBRCredentials -Credential $c -Description "ESXi Host Credentials"

    Related Commands

    Get-VBRCredentials