Lately, firing up PowerShell, I noticed that there is a phrase that says:
Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows
So why not trying it following the actual Microsoft documentation:
- I run
$PSVersionTable
and the version installed is 5.1 - I run
winget search Microsoft.PowerShell
and it says that version7.2
is available as well as the7.3 preview
version - I run
winget install --id Microsoft.Powershell --source winget
and version7.2
is installed - I run
$PSVersionTable
again and I'm still on5.1
Let's try to install it through dotnet:
- I run
dotnet tool install --global PowerShell
and the terminal saysTool 'powershell' (version '7.2.6') was successfully installed.
- I run
$PSVersionTable
and I'm still on5.1
I'm following the current Microsoft documentation, where am I wrong?
pwsh.exe
made the trick. But why I cannot set PowerShell 7 as the default PowerShell? – Totality