Add-VBREncryptionKey
Short Description
Creates encryption key.
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Add-VBREncryptionKey [-Password] <SecureString> [[-Description] <String>] [<CommonParameters>] |
Detailed Description
This cmdlet creates a new encryption key.
This cmdlet accepts SecureString type. Use Microsoft PowerShell standard capabilities to convert your password into the SecureString.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Description |
Specifies description of the new encryption key that you can further use to search encryption keys. |
|
False |
1 |
False |
|
Password |
Specifies password you want to use to encrypt data. |
|
True |
0 |
True (ByPropertyName, ByValue) |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
Examples
Creating Encryption Key
This command creates the Veeam Administrator encryption key.
|
$plainpassword = "VeeamPassword" $securepassword = $plainpassword | ConvertTo-SecureString -AsPlainText -Force Add-VBREncryptionKey -Password $securepassword -Description "Veeam Administrator" |
Perform the following steps:
- Save the password into the
$plainpasswordvariable. - Turn the password into a SecureString by running the
ConvertTo-SecureStringcommand. Provide theAsPlainTextandForceparameters. - Run the
Add-VBREncryptionKeycmdlet. Set the$securepasswordvariable as thePasswordparameter value. Specify theDescriptionparameter value.