Different commands tell me I have different versions of PowerShell. (1) Why? (2) Do I need to care?
Following some of the advice here and on other sites I used WinGet to install a later version of PowerShell. Or so I thought.
Every time I start PowerShell I get a header saying 'Try the cross platform version at ....' I thought I had done that before but tried again. Several methods offered so I tried winget for 7.1 version.
Before starting $PSVersionTable.PSVersion said I had 5.1. Winget ran for a while and then said I had to uninstall previous version. Deep breath and then I used winget uninstall microsoft.powershell. Appeared to run smoothly. Then reran install.
Also appeared to run smoothly and reported success. I closed PowerShell and restarted. Still get the 'Try the crossplatform ...' message. $PSVersionTable.PSVersion still reports 5.1. As does Get-Host. But pwsh --version says 7.3.6
What do I really have? And, as with so many upgrades, does it really make any difference?