For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get-RDMEntryPrivateKey

Synopsis

Get an entry's private key

Syntax

InputObject (Default)

Get-RDMEntryPrivateKey [-InputObject] <PSConnection> [[-ExportPath] <string>] [-NoClobber]
 [-VaultMode <VaultMode>] [-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]

Id

Get-RDMEntryPrivateKey [-ID] <guid> [[-ExportPath] <string>] [-NoClobber] [-VaultMode <VaultMode>]
 [-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]

InputObjectPipeline

Get-RDMEntryPrivateKey [[-ExportPath] <string>] -InputObject <PSConnection> [-NoClobber]
 [-VaultMode <VaultMode>] [-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]

Description

Get an entry's private key. Two types of private key are supported: Embedded data and File (local). The user must also have the right to edit the entry. Additionaly, the 'ExportPath' parameter allows for the key to be saved into a file. Only a vault owner or administrator can export the key.")]

Examples

Get-RDMEntry -Name 'My Private Key Cred' | Get-RDMEntryPrivateKey -ExportPath 'myfile.key' | Out-Null

Save the private key from the entry named 'My Private Key Cred' into a file named 'myfile.key'.

Parameters

-ExportPath

Export file for the private key.

-ForcePromptAnswer

Switch to use with caution. It will automatically answer prompt asking yes/no, yes/no/cancel, or ok/cancel questions. In case of multiple prompts, multiple values can be passed to this parameter. Here are the accepted values:

  • Yes: Accept the prompt. Cover the OK and Automatic value.

  • No: Refuse the yes/no/cancel prompt. "Cancel" is the fallback option if there is no "No" option.

  • Cancel: Cancel the yes/no/cancel prompt. "No" is the fallback option if there is no "Cancel" option.

-ID

ID of the entry for which the private key is fetched

-InputObject

ID of the entry for which the private key is fetched

-NoClobber

NoClobber prevents an existing file from being overwritten and displays a message that the file already exists. By default, if a file exists in the specified path, it is overwritten.

-VaultMode

Vault where the command will be applied. Three choices are offered:

  • Default: Current vault that has been set.

  • User: Vault specific to the current user.

  • Global: Global vault of the workspace.

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

RemoteDesktopManager.PowerShellModule.PSOutputObject.PSConnection

The entry containing the private key

Notes

For more information, type "Get-Help Get-RDMEntryPrivateKey -detailed". For technical information, type "Get-Help Get-RDMEntryPrivateKey -full".

Last updated

Was this helpful?