> 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-dsloginattempt.md).

# Get-DSLoginAttempt

Get-DSLoginAttempt recupera los intentos de inicio de sesión registrados en una instancia de Devolutions Server, opcionalmente filtrados por nombre de usuario o intervalo de fechas.

### Sinopsis

Obtener los intentos de inicio de sesión

### Sintaxis

#### \_\_AllParameterSets

```
Get-DSLoginAttempt [-DateFilter <DateFilter>] [-After <datetime>] [-Before <datetime>]
 [-Username <string>] [-PageNumber <int>] [-PageSize <int>] [<CommonParameters>]
```

### Descripción

Obtener uno o varios intentos de inicio de sesión. Filtrar opcionalmente por nombre de usuario o período de tiempo. Si no se aplica ningún filtro de fecha, se obtienen los intentos de inicio de sesión de los últimos 7 días. Los resultados están paginados; de forma predeterminada, se recupera una página de 10000 intentos de inicio de sesión.

### Ejemplos

#### Ejemplo 1

```powershell
PS C:\> Get-DSLoginAttempt -Username 'johndoe'
```

Obtiene los intentos de inicio de sesión y los filtra por nombre de usuario.

#### Ejemplo 2

```powershell
PS C:\> Get-DSLoginAttempt -DateFilter Last30Days
```

Obtiene los intentos de inicio de sesión de los últimos 30 días.

#### Ejemplo 3

```powershell
PS C:\> Get-DSLoginAttempt -DateFilter Custom -After (Get-Date).AddDays(-14)
```

Obtiene los intentos de inicio de sesión de los últimos 14 días mediante un intervalo de fechas personalizado ('Before' toma ahora de forma predeterminada).

#### Ejemplo 4

```powershell
PS C:\> Get-DSLoginAttempt -DateFilter Custom -After '2024-01-01' -Before '2024-01-31'
```

Obtiene los intentos de inicio de sesión de un intervalo de fechas concreto.

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

#### -DateFilter

Filtro de fecha para los intentos de inicio de sesión. 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: ''
```

#### -PageNumber

Número de página para los resultados paginados. Valor predeterminado: 1

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

#### -PageSize

Número de resultados por página. Valor predeterminado: 10000

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

#### -Username

Nombre de usuario para filtrar los intentos de inicio de sesión (filtrado del lado cliente aplicado después de obtenerlos del servidor).

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

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

#### Devolutions.RemoteDesktopManager.Business.Entities.LoginAttemptEntity

### Notas

Para más información, escriba "Get-Help Get-DSLoginAttempt -detailed". Para obtener información técnica, escriba "Get-Help Get-DSLoginAttempt -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-dsloginattempt.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.
