New-RDMVaultTemplate
Synopsis
Create a new vault template.
Syntax
__AllParameterSets
New-RDMVaultTemplate [-Name] <string> [[-Entries] <PSConnection[]>] [-Set]
[-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]Description
Create a vault template. If -Set is not used, the instance will not be saved. Users may also call Set-RDMVaultTemplate to save the template or add more entries later.
-Entries accepts unsaved PSConnection objects built with New-RDMEntry (without -Set). Any folder referenced by an entry's Group that does not already exist in the batch is created automatically.
Requires workspace settings edit permission.
Examples
Example 1
PS C:\> $folder = New-RDMEntry -Name 'Network' -Type Group
PS C:\> $router = New-RDMEntry -Name 'Router1' -Type RDPConfigured -Group 'Network'
PS C:\> $template = New-RDMVaultTemplate -Name 'Network Devices' -Entries @($folder, $router) -SetCreates and saves a vault template seeded with a folder and one entry nested inside it.
Parameters
-Entries
Entries to seed the template with, built via New-RDMEntry without -Set. Folders referenced by an entry's Group that don't already exist in the batch are created automatically.
-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.
-Name
New vault template name.
-Set
Save the new vault template.
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.
Outputs
RemoteDesktopManager.PowerShellModule.PSOutputObject.PSVaultTemplateInfo
Notes
For more information, type "Get-Help New-RDMVaultTemplate -detailed". For technical information, type "Get-Help New-RDMVaultTemplate -full".
Last updated
Was this helpful?