> 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/de/powershell-commands/import-rdmcustomvariable.md).

# Import-RDMCustomVariable

### Übersicht

Benutzerdefinierte Variablen aus einer `.json`-Datei importieren.

### Syntax

#### \_\_AllParameterSets

```
Import-RDMCustomVariable [-FilePath] <string> [-ImportAction] <ImportListOptionAction>
 [-VariableScope] <CustomVariableScope> [-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]
```

### Beschreibung

Benutzerdefinierte Variablen aus einer `.json`-Datei importieren. Drei Typen von benutzerdefinierten Variablen sind verfügbar: die mit der aktuellen Datenquelle verknüpften, die mit dem aktuellen Tresor verknüpften und die mit den Optionseinstellungen der Anwendung verknüpften. Es ist auch möglich anzugeben, ob die importierten Variablen die bestehende Liste ersetzen, ausschließlich neue Variablen hinzufügen oder neue Variablen hinzufügen und bestehende Variablen aktualisieren sollen.

### Beispiele

#### Beispiel 1

```powershell
PS C:\> Import-RDMCustomVariable -FilePath "C:\Users\admin\Desktop\Custom_variables.json" -ImportAction ReplaceList -VariableType DataSource
```

Alle Variablen der Datei `Custom_variables.json` in die Datenquellen-Einstellungen importieren und dabei die bestehenden benutzerdefinierten Variablen ersetzen.

### Parameter

#### -FilePath

Pfad der `.json`-Datei, aus der benutzerdefinierte Variablen importiert werden sollen.

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

#### -ForcePromptAnswer

Mit Vorsicht zu verwendender Schalter. Er beantwortet automatisch Eingabeaufforderungen mit ja/nein-, ja/nein/abbrechen- oder ok/abbrechen-Fragen. Bei mehreren Eingabeaufforderungen können mehrere Werte an diesen Parameter übergeben werden. Hier sind die akzeptierten Werte:

* Yes: Die Eingabeaufforderung annehmen. Deckt den Wert OK und Automatic ab.
* No: Die ja/nein/abbrechen-Eingabeaufforderung ablehnen. "Cancel" ist die Ausweichoption, wenn es keine Option "No" gibt.
* Cancel: Die ja/nein/abbrechen-Eingabeaufforderung abbrechen. "No" ist die Ausweichoption, wenn es keine Option "Cancel" gibt.

```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: ''
```

#### -ImportAction

Aktion, wenn ein Duplikat gefunden wird. Muss einer der folgenden Werte sein:

"ReplaceList", "AddNewItems", "AddAndUpdate"

```yaml
Type: Devolutions.PowerShell.Enums.ImportListOptionAction
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 2
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -VariableScope

Wohin die Variablen importiert werden sollen. Muss einer der folgenden Werte sein:

"DataSource", "Vault", "UserVault", "Option"

```yaml
Type: Devolutions.PowerShell.Enums.CustomVariableScope
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 3
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### CommonParameters

Dieses Cmdlet unterstützt die allgemeinen Parameter: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction und -WarningVariable. Weitere Informationen finden Sie unter [about\_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).

### Hinweise

Für weitere Informationen geben Sie "Get-Help Import-RDMCustomVariable -detailed" ein. Für technische Informationen geben Sie "Get-Help Import-RDMCustomVariable -full" ein.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.devolutions.net/powershell/de/powershell-commands/import-rdmcustomvariable.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
