illfated
illfated12mo ago

Proper Powershell.exe in WSL possible?

I have Windmill running on WSL2 Ubuntu via docker-compose. I added another Worker that runs the Windmill binary directly on the WSL2 Ubuntu (as there is no Windows binary yet). I had hoped running the Binary directly on the WSL would let me get access to the Powershell.exe but unfortunately Windmill uses /usr/bin/pwsh by default which is Powershell Core and has a couple of features missing (WSMan mostly) that I need to introduce Windmill at work. A WSL Ubuntu uses the "full" Powershell.exe under "/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe". I tried adding that path as env variable POWERSHELL_PATH, renaming it, aliasing it, linking it... nothing worked. I'm thankful for any tips or recommendations how to get anything but Powershell Core running. I know Windows and Powershell dont have priority for Windmill but is there a Windows Binary planned in the future or any way to use the wsl powershell.exe?
1 Reply
rubenf
rubenf12mo ago
Hi @illfated , we can absolutely help you make this work but we only have time right now for enterprise customers because of the recent influx unfortunately. Feel free to reach at ruben@windmill.dev I do not know the answer right now but we can allocate the time to investigate and potentially do the necesssary improvement

Did you find this page helpful?