> 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/get-dsactivitylog.md).

# Get-DSActivityLog

Get-DSActivityLog ruft Devolutions Server-Aktivitätsprotokolleinträge ab, optional gefiltert nach Meldungstyp, Datumsbereich, Tresor, Benutzer oder Schlüsselwort.

### Übersicht

Aktivitätsprotokolle abrufen.

### Syntax

#### \_\_AllParameterSets

```
Get-DSActivityLog [-DateFilter <DateFilter>] [-After <datetime>] [-Before <datetime>]
 [-VaultID <guid[]>] [-UserID <guid[]>] [-MessageType <ConnectionLogMessage[]>] [-Filter <string>]
 [-PageSize <int>] [<CommonParameters>]
```

### Beschreibung

Aktivitätsprotokolle vom Server abrufen. Optional nach Meldungstyp, Datumsbereich, Tresor, Benutzer oder Schlüsselwort filtern. Wenn kein Datumsfilter angewendet wird, werden die Protokolleinträge der letzten 7 Tage abgerufen. Gibt alle übereinstimmenden Protokolleinträge zurück.

### Beispiele

#### Beispiel 1

```powershell
PS C:\> Get-DSActivityLog -MessageType OpenConnection,CloseConnection
```

Ruft Verbindungsöffnungs- und -schließereignisse der letzten 7 Tage ab (Standard).

#### Beispiel 2

```powershell
PS C:\> $before = (Get-Date '2025-03-31').AddDays(1).AddMilliseconds(-1)
PS C:\> Get-DSActivityLog -DateFilter Custom -After '2025-01-01' -Before $before
```

Ruft alle Aktivitätsprotokolleinträge für das 1. Quartal 2025 ab. Da -Before standardmäßig Mitternacht ist, wird $before auf 23:59:59.999 gesetzt, um den letzten Tag vollständig einzuschließen.

### Parameter

#### -After

Beginn des Datumsbereichs. Erforderlich bei Verwendung von -DateFilter Custom. Aktiviert außerdem implizit einen benutzerdefinierten Datumsbereich, wenn der Wert ohne -DateFilter angegeben wird.

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

#### -Before

Ende des Datumsbereichs. Standardmäßig das aktuelle Datum und die aktuelle Uhrzeit, wenn nichts angegeben ist.

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

#### -DateFilter

Voreingestellter Datumsbereich für die Protokolle. Standardmäßig Last7Days. Custom mit -After verwenden, um einen genauen Bereich anzugeben.

```yaml
Type: Devolutions.RemoteDesktopManager.DateFilter
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -Filter

Ergebnisse nach Eintragsname oder Ordner filtern (Teilübereinstimmung).

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

#### -MessageType

Ergebnisse auf einen oder mehrere Ereignistypen filtern (z. B. OpenConnection, PasswordViewed).

```yaml
Type: Devolutions.RemoteDesktopManager.ConnectionLogMessage[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -PageSize

Anzahl der pro Anforderung abgerufenen Protokolleinträge. Der Standardwert ist 10000. Erhöhen Sie diesen Wert, um die Anzahl der Anforderungen für große Datenmengen zu verringern (weniger Rundreisen), oder verringern Sie ihn bei Zeitüberschreitungen durch große Nutzlasten.

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

#### -UserID

Ergebnisse auf eine oder mehrere Benutzer-IDs filtern.

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

#### -VaultID

Ergebnisse auf eine oder mehrere Tresor-IDs filtern.

```yaml
Type: System.Guid[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  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).

### Ausgaben

#### RemoteDesktopManager.PowerShellModule.PSOutputObject.PSActivityLogItem

### Hinweise

Weitere Informationen erhalten Sie mit "Get-Help Get-DSActivityLog -detailed". Technische Informationen erhalten Sie mit "Get-Help Get-DSActivityLog -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/de/powershell-commands/get-dsactivitylog.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.
