Forum Discussion
Powershell showing two different version
Get-Host returns information about your powershell session like if you started it from the Start Menu, in a remote pssession that isn't really correct because you're starting point is the session from your computer. I think it displays a value for compatibility reasons? Please mark my answer as solution to mark it as solved.
I have a similar question! I have recently noticed that Microsoft Update is now automatically updating Powershell which is currently 7.4! Which seemed to work without any errors that I could notice.
But, when I checked the version two different ways, I got Two different versions as well!
If I access Powershell through the Start Menu it shows that the version is 7.4!
If I access Powershell by pressing the Windows Key & the X Key, Powershell recommends a pscore6 Update!
Also, please note that both
Powershell MODES are (ADMINISTRATION).
- Feb 06, 2023The difference between starting pwsh.exe (Powershell 7) and powershell.exe which is version 5 (Built-In Windows version)
- j80r59mFeb 06, 2023Copper ContributorWhy are there TWO VERSIONS?
- Feb 06, 2023There were a lot of versions 🙂 But basically, the one in Windows by default is version 5. Version 7 can be installed separately and updated using Windows Update. This wasn't the case before in earlier versions.