Export-RDMTemplate
Synopsis
Export entry templates in a rdm file
Syntax
__AllParameterSets
Export-RDMTemplate [-InputObject] <PSTemplate[]> [-Filename] <string> [-NoClobber]
[-ForcePromptAnswer <DialogResult[]>] [-WhatIf] [-Confirm] [<CommonParameters>]Description
Export entry templates in a rdm file. The templates must be obtained from Get-RDMTemplate. By default, the cmdlet overwrites an existing file. To avoid this, use the NoClobber parameter.
The user must have the rights to manage the templates.
Examples
Example 1
PS C:\> Get-RDMTemplate -Type Local -NoEnumerate | Export-RDMTemplate -Filename 'C:\my\path\localTemplatesExported.rdm' -NoClobberExport all local entry templates in the file 'C:\my\path\localTemplatesExported.rdm'. The operation will fail if the file already exists.
Example 2
Export all shared entry templates in individual files
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
-Filename
Export file name. It can include the path. The extension must be '.rdm'.
-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
The templates to export.
-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.
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is 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.PSTemplate
Entry templates obtained from Get-RDMTemplate to export
Notes
For more information, type "Get-Help Export-RDMTemplate -detailed". For technical information, type "Get-Help Export-RDMTemplate -full".
Last updated
Was this helpful?