Closed Omzig closed 3 weeks ago
Is the integrated environment missing a path? It usually just defaults to Universal.Server
Is the integrated environment missing a path? It usually just defaults to Universal.Server
looks like it:
New-PSUEnvironment -Name "Windows PowerShell 5.1" -Path "powershell.exe" -Variables @('*') -Description "Windows PowerShell 5.1"
New-PSUEnvironment -Name "Integrated" -Version "7.4.2" -Variables @('*') -Description "An environment for running scripts directly in the PowerShell Universal server."
New-PSUEnvironment -Name "Agent" -Version "7.4.2" -Path "E:\src\psu\Beta\Universal.Agent.exe" -Variables @('*') -Description "An environment for running scripts in an external PowerShell Universal agent process."
New-PSUEnvironment -Name "PowerShell 7" -Path "pwsh" -Variables @('*') -Description "The current version of PowerShell 7."
New-PSUEnvironment -Name "PowerShell 7.4.2" -Version "7.4.2" -Path "C:\Program Files\PowerShell\7\pwsh.exe"
New-PSUEnvironment -Name "Windows PowerShell 5.1.17763.5820" -Version "5.1.17763.5820" -Path "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"
Do you know how you got in this state? You should be able to add the path back in the file editor.
Do you know how you got in this state? You should be able to add the path back in the file editor.
it came that way when i installed it, i did edit anything from the admin site, it just showed up in my repo
Was this v5? Or was it v4.2.21?
oops, sorry, beta6
updated ver in original post
OK, i figured out how to trigger this:
Thanks. Nice find. I also removed the mandatory on -Path since it really isn't. I've fixed the discovery.
Version
5.0.0-beta6 - (9424572094)
Severity
Low
Environment
Nested IIS
Steps to Reproduce
In notifications it says: Error | Invalid configuration: E:\src\psu\Beta_data\UniversalAutomation\Repository.universal\environments.ps1 | Cannot process command because of one or more missing mandatory parameters: Path.
Open the Environments.ps1 there seems to be line breaks in the generated file.
Expected behavior
Actual behavior
Additional Environment data
No response
Screenshots/Animations
No response