> 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/es/powershell-commands/get-dspamlog.md).

# Get-DSPamLog

Get-DSPamLog recupera las entradas del registro de actividad de PAM de Devolutions Server, opcionalmente filtradas por tipo de mensaje, intervalo de fechas, credencial, bóveda o usuario.

### Sinopsis

Obtener los registros de actividad de PAM.

### Sintaxis

#### \_\_AllParameterSets

```
Get-DSPamLog [-DateFilter <DateFilter>] [-After <datetime>] [-Before <datetime>]
 [-MessageType <ConnectionLogMessage[]>] [-CredentialID <guid>] [-VaultID <guid>]
 [-UserID <string[]>] [-IncludePamSystem] [<CommonParameters>]
```

### Descripción

Obtener los registros de actividad de PAM del servidor. Filtrar opcionalmente por tipo de mensaje, intervalo de fechas, credencial, bóveda o usuario. Si no se aplica ningún filtro de fecha, se obtienen las entradas de registro de los últimos 7 días. Devuelve todas las entradas de registro coincidentes.

### Ejemplos

#### Ejemplo 1

```powershell
PS C:\> Get-DSPamLog -MessageType PamCheckoutAdded, PamCheckoutEnded, PamPasswordViewed
```

Obtiene los eventos de check-out y de visualización de contraseña de los últimos 7 días (predeterminado).

#### Ejemplo 2

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

Obtiene todas las entradas del registro de PAM del primer trimestre de 2025. Como -Before toma medianoche de forma predeterminada, $before se establece en 23:59:59.999 para incluir el último día completo.

#### Ejemplo 3

```powershell
PS C:\> Get-DSPamLog -DateFilter Last30Days -MessageType PamCredentialSync,PamCredentialAdded | Export-Csv -Path imports.csv
```

Obtiene los eventos de importación y sincronización de cuentas PAM de los últimos 30 días y los exporta a CSV.

### Parámetros

#### -After

Fecha de inicio del intervalo de fechas personalizado (obligatoria al usar -DateFilter Custom).

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

Fecha de fin del intervalo de fechas personalizado (usar con -DateFilter Custom). De forma predeterminada, la fecha y hora actuales si no se especifica.

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

#### -CredentialID

Filtrar por ID de credencial.

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

#### -DateFilter

Filtro de fecha para los registros de PAM. De forma predeterminada, los últimos 7 días si no se especifica.

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

#### -IncludePamSystem

Incluir los eventos del sistema PAM en los resultados.

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

#### -MessageType

Filtrar por uno o varios tipos de evento.

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

#### -UserID

Filtrar por ID de usuario.

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

#### -VaultID

Filtrar por ID de bóveda.

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

#### CommonParameters

Este cmdlet admite los parámetros comunes: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction y -WarningVariable. Para más información, consulte [about\_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).

### Salidas

#### RemoteDesktopManager.PowerShellModule.PSOutputObject.PSPamLogItem

### Notas

Para más información, escriba "Get-Help Get-DSPamLog -detailed". Para obtener información técnica, escriba "Get-Help Get-DSPamLog -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/es/powershell-commands/get-dspamlog.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.
