For the complete documentation index, see llms.txt. This page is also available as Markdown.

Start-PSUServer

Starts the PowerShell Universal server.

SYNOPSIS

Starts the PowerShell Universal server.

SYNTAX

Service (Default)

Start-PSUServer [<CommonParameters>]

Path

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

DESCRIPTION

Starts the PowerShell Universal server. This cmdlet performs discovery and configuration of the Universal.Server executable. It uses Start-Process to start up the server after the configuration has been completed. This cmdlet requires that it can find the Universal.Server executable. You can use Install-PSUServer to download the proper binaries for your system.

EXAMPLES

Example 1

Starts a PowerShell Universal server on port 8080

Example 2

Starts a PowerShell Universal server on port 8080 and uses single-file configuration to setup a new endpoint listening on '/test'

Example 3

Sets an alternative repository path and starts the PowerShell Universal server.

PARAMETERS

-ExecutablePath

The path to the Universal.Server executable. This defaults to $Env:ProgramData\Universal.Server. If not found in this location, Start-PSUServer will also search the $ENV:PATH

-ListenAddress

The address to listen on. For example: http://*:4000

-Configuration

A configuration script block. This enables single-file configuration.

-Port

A port to listen on.

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.

INPUTS

None

OUTPUTS

System.Object

NOTES

Install-PSUServer

Last updated

Was this helpful?