Set-VBRCredentials
Short Description
Modifies credentials records properties.
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides the following parameter sets:
-
AllParameterSets (Default)Set-VBRCredentials -Credential <CCredentials> [-User <String>] [-Password <String>] [-Description <String>]
[-SshPort <Int32>] [-Passphrase <String>] [-ElevateToRoot] [-AddToSudoers] [-FailoverToSu]
[-RootPassword <String>] [<CommonParameters>]
-
ParameterSetKeyPathSet-VBRCredentials -Credential <CCredentials> [-User <String>] [-Password <String>] [-Description <String>]
[-SshPort <Int32>] [-Passphrase <String>] [-ElevateToRoot] [-AddToSudoers] [-FailoverToSu]
[-RootPassword <String>] [-PrivateKeyPath <String>] [<CommonParameters>]
-
ParameterSetKeyContentSet-VBRCredentials -Credential <CCredentials> [-User <String>] [-Password <String>] [-Description <String>]
[-SshPort <Int32>] [-Passphrase <String>] [-ElevateToRoot] [-AddToSudoers] [-FailoverToSu]
[-RootPassword <String>] [-PrivateKey <String>] [<CommonParameters>]
Detailed Description
This cmdlet allows you to modify password or description of a selected credentials record.
Note |
|
To modify settings, specify new values for the necessary parameters. The cmdlet will overwrite the previous parameter values with new values. The parameters that you omit will remain unchanged. |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
AddToSudoers |
Used for Identity/Pubkey authentication method. Defines that a user account is added to the sudoers file.
Default: (if the |
|
False |
Named |
False |
|
Credential |
Specifies credentials you want to modify.
Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
Description |
Specifies a description for a credentials record. It is recommended to input this value to make credential records easily identified. |
|
False |
Named |
False |
|
ElevateToRoot |
Used for Identity/Pubkey authentication method. Defines that non-root users are provided with root account privileges.
Default: |
|
False |
Named |
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 the sudo command fails. Otherwise, if the sudo fails Veeam Backup & Replication will not be able to add Linux credentials records.
Default: |
|
False |
Named |
False |
|
Passphrase |
Specifies a passphrase for a Linux private key on a backup server. |
|
False |
Named |
False |
|
Password |
Specifies a password you want to use to authenticate with instances of your virtual infrastructure. |
|
False |
Named |
False |
|
PrivateKey |
Used for Identity/Pubkey authentication method. Specifies a private key. |
|
False |
Named |
False |
|
PrivateKeyPath |
Used for Identity/Pubkey authentication method.
Specifies a path to a private key. Use this parameter to specify a private key for the LinuxPubKey option of the |
|
False |
Named |
False |
|
RootPassword |
Used for Identity/Pubkey authentication method. Specifies a root password for authentication. |
|
False |
Named |
False |
|
SshPort |
Used for Identity/Pubkey authentication method. Specifies a number of an SSH port that you want to use to connect to a Linux server.
Permitted values:
Default: |
|
False |
Named |
False |
|
User |
Specifies a user name you want to use to authenticate against instances of your virtual infrastructure. Note: You should use DOMAIN\Username format for all hosts except ESX/ESXi hosts. |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
The cmdlet returns the CCredentials object that contains user credentials.
Examples
Example 1. Setting New Password for Credentials Record Using User Name
|
This example shows how to set a new password for the credentials record with the
Perform the following steps:
|
Example 2. Setting New Password for Credentials Record Using User Name [Using Pipeline]
|
This example shows how to set a new password for the credentials record with the
Perform the following steps:
|
Example 3. Setting New Description for Specific Credentials Record
|
This example shows how to set a new description for the credentials record. The new description is
Perform the following steps:
|
Related Commands
Get-VBRCredentialsReturns credentials records.