> 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/es/comandos-de-powershell/start-psuserver.md).

# Start-PSUServer

## SYNOPSIS

Inicia el servidor de PowerShell Universal.

## SYNTAX

### Service (predeterminado)

```
Start-PSUServer [<CommonParameters>]
```

### Path

```
Start-PSUServer [[-ExecutablePath] <String>] [[-ListenAddress] <String>] [-Port <Int32>]
 [-Configuration <ScriptBlock>] [<CommonParameters>]
```

## DESCRIPTION

Inicia el servidor de PowerShell Universal. Este cmdlet realiza la detección y configuración del ejecutable Universal.Server. Utiliza Start-Process para iniciar el servidor una vez completada la configuración. Este cmdlet requiere poder encontrar el ejecutable Universal.Server. Puede usar Install-PSUServer para descargar los binarios adecuados para su sistema.

## EXAMPLES

### Ejemplo 1

```
PS C:\> Start-PSUServer -Port 8080
```

Inicia un servidor de PowerShell Universal en el puerto 8080

### Ejemplo 2

```
PS C:\> Start-PSUServer -Port 8080 -Configuration {
    New-PSUEndpoint -Url '/test' -Method 'GET' -Endpoint {
        "Hi"
    }
}
```

Inicia un servidor de PowerShell Universal en el puerto 8080 y utiliza la configuración de fichero único para configurar un nuevo endpoint que escucha en '/test'

### Ejemplo 3

```
PS C:\> $Env:Data__RepositoryPath = "C:\repo" 
PS C:\> Start-PSUServer -Port 8080
```

Establece una ruta de repositorio alternativa e inicia el servidor de PowerShell Universal.

## PARAMETERS

### -ExecutablePath

La ruta al ejecutable Universal.Server. El valor predeterminado es $Env:ProgramData\Universal.Server. Si no se encuentra en esta ubicación, Start-PSUServer también buscará en $ENV:PATH

```yaml
Type: String
Parameter Sets: Path
Aliases:

Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -ListenAddress

La dirección en la que escuchar. Por ejemplo: http\://\*:4000

```yaml
Type: String
Parameter Sets: Path
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Configuration

Un bloque de script de configuración. Esto habilita la configuración de fichero único.

```yaml
Type: ScriptBlock
Parameter Sets: Path
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Port

Un puerto en el que escuchar.

```yaml
Type: Int32
Parameter Sets: Path
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### CommonParameters

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

## INPUTS

### Ninguno

## OUTPUTS

### System.Object

## NOTES

## RELATED LINKS

[Install-PSUServer](/powershell-universal/es/comandos-de-powershell/install-psuserver.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, and the optional `goal` query parameter:

```
GET https://docs.devolutions.net/powershell-universal/es/comandos-de-powershell/start-psuserver.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
