> For the complete documentation index, see [llms.txt](https://docs.realmjoin.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.realmjoin.com/de/automatisierung/runbooks/runbook-references/device/security/restrict-or-release-code-execution.md).

# Codeausführung einschränken oder freigeben

### Beschreibung

Dieses Runbook beschränkt die Codeausführung auf einem Gerät über Microsoft Defender for Endpoint, sodass nur von Microsoft signierter Code ausgeführt werden kann. Optional kann es eine vorhandene Einschränkung entfernen. Geben Sie einen kurzen Grund an, damit die Aktion im Dienst dokumentiert wird.

### Ort

Gerät → Sicherheit → Codeausführung einschränken oder freigeben

**Vollständiger Runbook-Name**

rjgit-device\_security\_restrict-or-release-code-execution

### Berechtigungen

#### Anwendungsberechtigungen

* **Typ**: WindowsDefenderATP
  * Machine.Read.All
  * Machine.RestrictExecution

### Parameter

#### DeviceId

Die Geräte-ID des Zielgeräts.

| Eigenschaft  | Wert         |
| ------------ | ------------ |
| Erforderlich | wahr         |
| Standardwert |              |
| Typ          | Zeichenfolge |

#### Freigeben

„Codeausführung einschränken“ (Endwert: false) oder „Codeeinschränkung entfernen“ (Endwert: true) kann als auszuführende Aktion ausgewählt werden. Wenn false festgelegt ist, beschränkt das Runbook die Codeausführung auf dem Gerät in Microsoft Defender for Endpoint. Wenn true festgelegt ist, wird eine vorhandene Einschränkung der Codeausführung auf dem Gerät in Microsoft Defender for Endpoint entfernt.

| Eigenschaft  | Wert     |
| ------------ | -------- |
| Erforderlich | wahr     |
| Standardwert | False    |
| Typ          | Boolesch |

#### Kommentar

Ein kurzer Grund für die (De-)Beschränkungsaktion.

| Eigenschaft  | Wert                         |
| ------------ | ---------------------------- |
| Erforderlich | wahr                         |
| Standardwert | Mögliches Sicherheitsrisiko. |
| Typ          | Zeichenfolge                 |

[Zur Übersicht der Runbook-Referenz zurück](/de/automatisierung/runbooks/runbook-references.md)


---

# 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:

```
GET https://docs.realmjoin.com/de/automatisierung/runbooks/runbook-references/device/security/restrict-or-release-code-execution.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
