Some newer PowerShell releases offer ZIP and MSIX packages but no MSI. On Windows Server 2019 and 2022, the ZIP extracts files without setting up a conventional installation, and I would rather avoid production workarounds for MSIX. What are the practical options?
How are you installing newer PowerShell versions on Windows Server without an MSI?
Answers
For production servers, sticking with an LTS release that still offers an MSI is a reasonable choice. Pin the version you deploy and plan updates around that release rather than moving straight to the newest feature release.
Check the available packages and support dates for the particular version before standardizing on it. The packaging situation may change in later releases, but I wouldn't plan a production rollout around a future fix.
Reply to this answer
The ZIP is usable, but you're taking on the installation work yourself. Extract it to a controlled directory and run pwsh.exe from there. If you want it available by name, you can add that directory to PATH.
Also decide how you'll deploy updates and handle any integration your environment needs. Extracting the archive isn't equivalent to running an MSI, so test automation and remoting separately rather than assuming they're configured.
Zelda:
That distinction matters for server automation. A working local pwsh.exe doesn't by itself show that a remote management setup is ready.
Reply to this answer
I'd be cautious about treating MSIX as a drop-in replacement on these servers. There are reported workarounds for Server 2022, but that doesn't make them a good fit for every production environment. Remoting has also been raised as a concern with the bundle method, so test the exact deployment and management setup before relying on it.
Reply to this answer
If the jobs don't actually need to run on Windows, Linux automation agents are another option to consider. That won't solve interactive administration on the Windows servers, but it can separate the automation runtime from the server packaging problem.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Good Sport:
That makes sense for production. Management machines are another case where having the latest version would be useful, though.