Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefer pwsh.exe over powershell.exe in documentation #2610

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

casey
Copy link
Owner

@casey casey commented Jan 29, 2025

Fixes #2604.

@john-cd Since which version of windows is pwsh.exe installed on by default? I want to make sure it's widely available before changing the docs.

@casey casey marked this pull request as draft January 29, 2025 21:45
@john-cd
Copy link

john-cd commented Jan 29, 2025

Not the expert, but the transition from "Windows PowerShell" to cross-platform "PowerShell" started with PowerShell Core 6, GA on January 10, 2018. We are now at "Powershell 7.5": https://en.wikipedia.org/wiki/PowerShell

Now, MS designed old Windows PowerShell and new Powershell to run side-by-side.

"Windows PowerShell is the version of PowerShell that ships in Windows. This version of PowerShell uses the full .NET Framework, which only runs on Windows. The latest version is Windows PowerShell 5.1. Microsoft is no longer updating Windows PowerShell with new features." https://learn.microsoft.com/en-us/powershell/scripting/what-is-windows-powershell

So MS still ships Windows PowerShell, but for a couple of years there has been a nag message that prompts you to install cross-platform Powershell aka pwsh.exe.

So, developers could use both but most likely have upgraded to pwsh

@casey
Copy link
Owner Author

casey commented Jan 29, 2025

Hmm, interesting. @runeimp do you happen to know? I'd like to change all the docs to use pwsh.exe instead of powershell.exe, but want to make sure that pwsh.exe is available by default on enough recent versions of windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update powershell example
2 participants