Forum Discussion
SanjeevRana
Apr 19, 2022Copper Contributor
Powershell showing two different version
Hi Everyone, I was using my local laptop to connect to domain controller with PowerShell through Enter-Pssesion. After connecting to it, When I am checking the power shell version for my remote com...
SanjeevRana
Apr 20, 2022Copper Contributor
yes now it matches the info. thank you. is there any reason why this is not showing same version by running "get-host | select-object version" command? Just trying to understand the difference here.
Apr 20, 2022
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.
- j80r59mFeb 06, 2023Copper Contributor
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?