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
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
Installs the latest version of PowerShell Universal into the default location and sets the path in the PATH variable.
Example 3
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
-Version
The version to download. This defaults to the version of the PowerShell Universal module you are using.
-LatestVersion
Downloads and installs the latest version of PowerShell Universal.
-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.
-IISAppPool
Specifies the IIS application pool name to create and assign to the website. Defaults to PowerShellUniversal.
-IISPort
Specifies the IIS binding port used when creating the website.
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
RELATED LINKS
Last updated
Was this helpful?