Remove-VBREncryptionKey

Short Description

Removes encryption key.

Platform: VMware, Hyper-V

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

Syntax

Remove-VBREncryptionKey [-EncryptionKey] <PSCryptoKey> [-WhatIf]

[-Confirm] [<CommonParameters>]

Detailed Description

This cmdlet removes a selected encryption key.

Important

You cannot remove an encryption key if it is used by any job or set in permissions for repository for Veeam Agent for Microsoft Windows jobs.

Parameters

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

EncryptionKey

Specifies the encryption key you want to remove.

Accepts the PSCryptoKey object or string (description). To get this object, run the Get-VBREncryptionKeyReturns encryption keys. cmdlet.

PSCryptoKey

True

0

True (ByPropertyName, ByValue)

Confirm

Defines whether the cmdlet displays a prompt that asks if the user is sure that they want to continue.

Note: Microsoft PowerShell enables the Confirm parameter for this cmdlet by default. To disable this option, set the parameter value to $false. That is, Confirm:$false.

SwitchParameter

False

Named

False

WhatIf

Defines whether the cmdlet writes a message that describes the effects of running the cmdlet without actually performing any action.

SwitchParameter

False

Named

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Examples

Remove-VBREncryptionKeyExample 1. Removing Encryption Key [Using Pipeline]

This example shows how to remove the Veeam Administrator encryption key.

Get-VBREncryptionKey -Description "Veeam Administrator" | Remove-VBREncryptionKey

Perform the following steps:

  1. Run the Get-VBREncryptionKeyReturns encryption keys. cmdlet. Specify the Description parameter value.
  2. Pipe the cmdlet output to the Remove-VBREncryptionKey cmdlet.

Remove-VBREncryptionKeyExample 2. Removing Encryption Key [Using Variable]

This example shows how to remove the Veeam Administrator encryption key.

$administratorkey = Get-VBREncryptionKey -Description "Veeam Administrator"

Remove-VBREncryptionKey -EncryptionKey $administratorkey

Perform the following steps:

  1. Run the Get-VBREncryptionKeyReturns encryption keys. cmdlet. Specify the Description parameter value. Save the result to the $administratorkey variable.
  2. Run the Remove-VBREncryptionKey cmdlet. Set the $administratorkey variable as the EncryptionKey parameter value.

Get-VBREncryptionKeyReturns encryption keys.

Page updated 2026-08-19

Page content applies to build 13.1.1.18