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

New-RDMEntry

Synopsis

Create a new entry.

Syntax

__AllParameterSets

New-RDMEntry [[-Name] <string>] [-Type] <ConnectionType> [[-Group] <string>] [[-Host] <string>]
 [[-TemplateID] <guid>] [-DocumentAttachment <PSConnectionAttachment>] [-DocumentFileName <string>]
 [-Set] [-VaultMode <VaultMode>] [-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]

Description

Create a new entry. To save the new entry, the SetSession switch must be used. To save in the user vault ou the system vault, use the VaultMode parameter.

Examples

Example 1

PS C:\> New-RDMEntry -Name 'New Entry' -Host 'myServer' -Type 'RDPConfigured' -Set -VaultMode User

Create & save a new entry in the user vault.

Example 2

Create a new entry without saving it and store it in $folder. Add some additionnal information in the GroupDetails. Save the entry in the current vault.

Parameters

-DocumentAttachment

New document attachement.

-DocumentFileName

New document file name.

-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 not an option No.

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

-Group

Folder where the entry will be. It is corresponding to the property 'Group' of the PSConnection object.

-Host

Host of the entry. Value available for specific entry types only.

-Name

Name of the entry. It can not be empty. However, if the parameter Host is not empty, it will be use as a fallback.

-Set

Save the entry based on the vault mode: - Default => In the current vault - User => In the user vault - Global => In the system vault

-TemplateID

ID of the template used to create the entry. It is mandatory for entry of the type 'TemplateGroup'.

-Type

Type of the entry to create.

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

Notes

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

Last updated

Was this helpful?