Set-VBRComputerRecoveryToken
Short Description
Modifies tokens for bare-metal recovery.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Set-VBRComputerRecoveryToken -RecoveryToken <VBRComputerRecoveryToken[]> [-ExpirationDate <DateTime>] [-FriendlyName <String>] [<CommonParameters>] |
Detailed Description
This cmdlet modifies settings of tokens that you can use to perform bare-metal recovery.
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 |
|---|---|---|---|---|---|
|
ExpirationDate |
Specifies the expiration date of a token. |
|
False |
Named |
False |
|
FriendlyName |
Specifies a token friendly name. |
|
False |
Named |
False |
|
RecoveryToken |
Specifies an array of token. The cmdlet will modify these tokens.
Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
None.
Note |
|
Since the cmdlet does not return any object, to view the changes you must run the |
Examples
Modifying Expiration Date of Tokens for Bare-Metal Recovery
This example shows how to modify an expiration date of tokens that you can use to perform bare-metal recovery. The cmdlet will set expiration date to 02.20.2023 at 12.00.00 AM.
|
$token = Get-VBRComputerRecoveryToken $expirationDate = Get-Date -Year 2023 -Month 2 -Day 20 -Hour 0 -Minute 0 -Second 0 Set-VBRComputerRecoveryToken -RecoveryToken $token -ExpirationDate $expirationDate |
Perform the following steps:
- Run the
Get-VBRComputerRecoveryTokenReturns tokens for bare-metal recovery. cmdlet. Save the result to the$tokenvariable. - Run the
Get-Datecmdlet. Specify theYear,Month,Day,Hour,MinuteandSecondparameter values. Save the result to the$expirationDatevariable. - Run the
Set-VBRComputerRecoveryTokencmdlet. Set the$tokenvariable as theRecoveryTokenparameter value. Set the$expirationDatevariable as theExpirationDateparameter value.
Related Commands
Get-VBRComputerRecoveryTokenReturns tokens for bare-metal recovery.Get-Date