> 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-universal/de/powershell-befehle/set-psuaitool.md).

# Set-PSUAiTool

Set-PSUAiTool aktualisiert eine bestehende KI-Tool-Definition in PowerShell Universal und ändert dabei deren Metadaten, Rollen, Skriptpfad oder MCP-Verfügbarkeit.

## SYNOPSIS

Aktualisiert eine bestehende KI-Tool-Definition.

## SYNTAX

```powershell
Set-PSUAiTool -Id <Int64> [-Name <String>] [-Description <String>] [-Authenticated <Boolean>] [-Roles <String[]>] [-ScriptFullPath <String>] [-DefaultMaxWaitTimeoutSeconds <Int32>] [-Environment <String>] [-Computer <String>] [-Mcp] [<ConnectionOptions>] [<CommonParameters>]
Set-PSUAiTool -AiTool <AiTool> [-Name <String>] [-Description <String>] [-Authenticated <Boolean>] [-Roles <String[]>] [-ScriptFullPath <String>] [-DefaultMaxWaitTimeoutSeconds <Int32>] [-Environment <String>] [-Computer <String>] [-Mcp] [<ConnectionOptions>] [<CommonParameters>]
```

`<ConnectionOptions>`: `[-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]`.

## BESCHREIBUNG

Lädt ein KI-Tool nach ID oder Pipelineobjekt und aktualisiert nur die angegebenen Felder. `-Environment` und `-Computer` legen das standardmäßige Ausführungsziel fest; Computergruppen unterstützen `'<GroupName> (All)'` und `'<GroupName> (Any)'`. `-DefaultMaxWaitTimeoutSeconds` legt das standardmäßige Wartezeitlimit für Tool-Jobs fest; lassen Sie es weg, um den aktuellen Wert beizubehalten.

## BEISPIELE

```powershell
Set-PSUAiTool -Id 5 -Description 'Ticket lookup and updates' -Authenticated $true -Roles HelpDesk,Admin -Mcp
Set-PSUAiTool -Id 5 -Environment '7.4' -Computer 'Agents (Any)' -DefaultMaxWaitTimeoutSeconds 60
```

## PARAMETER

| Parameter                       | Beschreibung                                                                                                                  |
| ------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| `-Id`                           | Numerische ID des zu aktualisierenden Tools.                                                                                  |
| `-AiTool`                       | Zu aktualisierendes Toolobjekt; akzeptiert Pipelineeingabe.                                                                   |
| `-Name`                         | Neuer Toolname.                                                                                                               |
| `-Description`                  | Neue Beschreibung.                                                                                                            |
| `-Authenticated`                | Gibt an, ob eine Authentifizierung erforderlich ist (`$true` oder `$false`).                                                  |
| `-Roles`                        | Ersatzliste der Rollen, die das Tool ausführen dürfen.                                                                        |
| `-ScriptFullPath`               | Neuer Pfad zum implementierenden Skript.                                                                                      |
| `-DefaultMaxWaitTimeoutSeconds` | Standardmäßige maximale Wartezeit für Tool-Jobs in Sekunden; die explizite Übergabe von `$null` setzt den Wert auf 30 zurück. |
| `-Environment`                  | Standardmäßige Ausführungsumgebung; eine leere Zeichenfolge löscht sie.                                                       |
| `-Computer`                     | Standardmäßiger Zielcomputer oder standardmäßige Computergruppe; eine leere Zeichenfolge löscht das Ziel.                     |
| `-Mcp`                          | Legt die Verfügbarkeit über MCP fest.                                                                                         |
| `-ComputerName`                 | URL oder Hostname des Ziel-PSU-Servers (Alias `-Uri`), nicht das Ausführungsziel des Tools.                                   |
| `-AppToken`                     | App-Token der Verwaltungs-API.                                                                                                |
| `-Credential`                   | Anmeldeinformationen für die Basic-Authentifizierung der Verwaltungs-API.                                                     |
| `-UseDefaultCredentials`        | Verwendet die aktuellen Windows-Anmeldeinformationen.                                                                         |
| `-Integrated`                   | Verwendet den prozessinternen Verwaltungsclient.                                                                              |
| `-TrustCertificate`             | Ignoriert Fehler bei der Zertifikatsvalidierung.                                                                              |
| `-Cookies`                      | Verwendet die Authentifizierungscookies der Sitzung erneut.                                                                   |

## EINGABEN

`PowerShellUniversal.Models.Intelligence.AiTool`.

## BERECHTIGUNGEN

Das Zugriffstoken erfordert `intelligence.tools/update`, um dieses Cmdlet remote auszuführen.


---

# 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-universal/de/powershell-befehle/set-psuaitool.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.
