> 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/powershell-commands/install-psuserver.md).

# Install-PSUServer

## SYNOPSIS

Downloads and installed the PowerShell Universal server binaries.

## SYNTAX

### Version (Default)

```
Install-PSUServer [-Path <String>] [-Version <String>] [-IISWebsite <String>] [-IISAppPool <String>]
 [-IISPort <Int32>] [<CommonParameters>]
```

### Latest

```
Install-PSUServer [-Path <String>] [-LatestVersion] [-IISWebsite <String>] [-IISAppPool <String>]
 [-IISPort <Int32>] [<CommonParameters>]
```

## DESCRIPTION

Downloads and installed the PowerShell Universal server binaries. This cmdlet will download the proper binaries for the platform it is being run on. It can also add the binaries to the machine's PATH variable.

## EXAMPLES

### Example 1

```
PS C:\> Install-PSUServer
```

Installs the PowerShell Universal version based on the module installed. If the module version is 1.5.0, then the 1.5.0 version is downloaded and installed. This installs to the default location of $Env:ProgramData\PowerShellUniversal.

### Example 2

```
PS C:\> Install-PSUServer -AddToPath -LatestVersion
```

Installs the latest version of PowerShell Universal into the default location and sets the path in the PATH variable.

### Example 3

```
PS C:\> Install-PSUServer -Path .\PSU
```

Installs the current version to the .\PSU folder.

## PARAMETERS

### -Path

The path to where the PowerShell Universal binaries should be stored. This defaults to $Env:ProgramData\PowerShellUniversal

```yaml
Type: String
Parameter Sets: (All)
Aliases:

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

### -Version

The version to download. This defaults to the version of the PowerShell Universal module you are using.

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

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

### -LatestVersion

Downloads and installs the latest version of PowerShell Universal.

```yaml
Type: SwitchParameter
Parameter Sets: Latest
Aliases:

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

### -IISWebsite

Specifies the IIS website name to create for the installed server. This option is supported only on Windows and causes the cmdlet to create and start a website that points to the installed files.

```yaml
Type: String
Parameter Sets: (All)
Aliases:

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

### -IISAppPool

Specifies the IIS application pool name to create and assign to the website. Defaults to `PowerShellUniversal`.

```yaml
Type: String
Parameter Sets: (All)
Aliases:

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

### -IISPort

Specifies the IIS binding port used when creating the website.

```yaml
Type: Int32
Parameter Sets: (All)
Aliases:

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

### CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. For more information, see [about\_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### None

## OUTPUTS

### System.Object

## NOTES

## RELATED LINKS

[Start-PSUServer](/powershell-universal/powershell-commands/start-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/powershell-commands/install-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.
