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:
$PSVersionTable and the version installed is 5.1winget search Microsoft.PowerShell and it says that version 7.2 is available as well as the 7.3 preview versionwinget install --id Microsoft.Powershell --source winget and version 7.2 is installed$PSVersionTable again and I'm still on 5.1
Let's try to install it through dotnet:
dotnet tool install --global PowerShell and the terminal says Tool 'powershell' (version '7.2.6') was successfully installed.$PSVersionTable and I'm still on 5.1
I'm following the current Microsoft documentation, where am I wrong?
Powershell 7 (core) is its own application. Search for pwsh.exe and run that
To upgrade Poweshell version 7:
winget upgrade --id Microsoft.PowerShell
Sources:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With