Start-PSUServer
and Install-PSUServer
cmdlets can be used to install, configure and run a Universal instance in a single file.Install-PSUServer
. By default, it will store the latest version of the PowerShell Universal Server to the $Env:ProgramData\PowerShellUniversal
folder. You can specify an alternate path and optionally add the older to the $Env:Path
environment variable .Start-PSUServer
.Start-PSUServer
and the -Configuration
parameter. You can use the same cmdlets that you would use in the various configuration files but utilize a single file. You should save this file and then execute the PS1 file. Any changes to the file will be auto-reloaded.-Configuration
script block parameter.endpoints
folder within the same directory as your root file and they will be loaded automatically when the server starts of the files change.