> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/powershell/fr/powershell-commands/new-rdmvaulttemplate.md).

# New-RDMVaultTemplate

New-RDMVaultTemplate crée un modèle de coffre dans l'espace de travail Remote Desktop Manager actuel, éventuellement initialisé avec des entrées.

### Synopsis

Créer un nouveau modèle de coffre.

### Syntaxe

#### \_\_AllParameterSets

```
New-RDMVaultTemplate [-Name] <string> [[-Entries] <PSConnection[]>] [-Set]
 [-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]
```

### Description

Créer un modèle de coffre. Si -Set n'est pas utilisé, l'instance ne sera pas enregistrée. Les utilisateurs peuvent aussi appeler Set-RDMVaultTemplate pour enregistrer le modèle ou ajouter d'autres entrées plus tard.

-Entries accepte des objets PSConnection non enregistrés construits avec New-RDMEntry (sans -Set). Tout dossier référencé par le Group d'une entrée qui n'existe pas déjà dans le lot est créé automatiquement.

Nécessite la permission de modification des paramètres de l'espace de travail.

### Exemples

#### Exemple 1

```powershell
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) -Set
```

Crée et enregistre un modèle de coffre initialisé avec un dossier et une entrée imbriquée à l'intérieur.

### Paramètres

#### -Entries

Entrées avec lesquelles initialiser le modèle, construites au moyen de New-RDMEntry sans -Set. Les dossiers référencés par le Group d'une entrée qui n'existent pas déjà dans le lot sont créés automatiquement.

```yaml
Type: RemoteDesktopManager.PowerShellModule.PSOutputObject.PSConnection[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 1
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -ForcePromptAnswer

Commutateur à utiliser avec prudence. Il répondra automatiquement aux invites posant des questions oui/non, oui/non/annuler ou ok/annuler. En cas d'invites multiples, plusieurs valeurs peuvent être passées à ce paramètre. Voici les valeurs acceptées :

* Yes : Accepter l'invite. Couvre les valeurs OK et Automatic.
* No : Refuser l'invite oui/non/annuler. « Cancel » est l'option de repli s'il n'y a pas d'option « No ».
* Cancel : Annuler l'invite oui/non/annuler. « No » est l'option de repli s'il n'y a pas d'option « Cancel ».

```yaml
Type: System.Windows.Forms.DialogResult[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -Name

Nouveau nom du modèle de coffre.

```yaml
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -Set

Enregistrer le nouveau modèle de coffre.

```yaml
Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### CommonParameters

Cette applet de commande prend en charge les paramètres communs : -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction et -WarningVariable. Pour plus d'informations, consultez [about\_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).

### Sorties

#### RemoteDesktopManager.PowerShellModule.PSOutputObject.PSVaultTemplateInfo

### Notes

Pour plus d'information, tapez « Get-Help New-RDMVaultTemplate -detailed ». Pour de l'information technique, tapez « Get-Help New-RDMVaultTemplate -full ».


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.devolutions.net/powershell/fr/powershell-commands/new-rdmvaulttemplate.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
