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

Add-RDMEntryParameter

Synopsis

Add a parameter to a command-type entry.

Syntax

__AllParameterSets

Add-RDMEntryParameter -InputObject <PSConnection> -Label <string> [-Type <CmdParamDataType>]
 [-Value <string>] [-Set] [-PassThru] [-VaultMode <VaultMode>] [-ForcePromptAnswer <DialogResult[]>]
 [-WhatIf] [-Confirm] [<CommonParameters>]

Description

Add a parameter to a command-type entry. The new parameter is appended and assigned the next available Position ({n} token). Applies to CommandLine, PowerShell, ReportTool, and SessionTool entries. Use -Set to persist the change immediately.

Examples

Example 1

PS C:\> Get-RDMEntry -Name 'MyCmdEntry' | Add-RDMEntryParameter -Label 'Region' -Value 'us-east-1' -Set

Append a Text parameter named Region and save.

Example 2

Append an encrypted parameter.

Parameters

-Confirm

Prompts for confirmation before running the cmdlet.

-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.

-InputObject

Entry to add the parameter to. Obtained from Get-RDMEntry or New-RDMEntry.

-Label

Label for the new parameter.

-PassThru

Return the modified entry.

-Set

Save the entry in the current data source.

-Type

Parameter type. Defaults to Text.

-Value

Default value. Encrypted at storage when Type is Secured.

-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.

-WhatIf

Shows what would happen if the cmdlet were to run. The cmdlet does not run.

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

PSConnection of the entry. Obtained from Get-RDMEntry or New-RDMEntry.

Notes

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

Last updated

Was this helpful?