Hello, colleagues.
Is there any way to run PowerShell Core 6 or 7 from a standard Bamboo script task on a Bamboo agent that works on Windows Server 2016 LTSC (I guess same will apply to Windows Server 2019)?
I went through task documentation and I discovered that there's no mention about support for these PowerShell versions.
PowerShell 6 and 7 are more robust and have lots of improvements if we compare them with PowerShell base 5.1 (which was shipped in windows server 2016).
However, Microsoft had changed significantly a way of installation and even PowerShell.exe named differently:
- PowerShell.exe is now pwsh.exe;
- Different folders are in use for modules and profiles then for the 5.1, etc.;
https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-windows?view=powershell-7.1
It looks like it won't work by default.
So, any ideas or road maps about this?