Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does PowerShell 5 from Windows 7 not have the same features as Windows 10?

I upgraded my PowerShell from 4.0 to 5.0 (Feb. 2016 release) on my Windows 7 SP1 machine.

The $PSVersionTable shows PowerShell 5.0, but the shell does not have the same features as PowerShell 5.0 in Windows 10.

Differences:

  • Keyword highlighting
  • Text selection with Shift+Arrow keys
  • Copy/paste with Ctrl+C/V

Why is there a difference?

How to get/enable these missing features?

like image 343
Paebbels Avatar asked Mar 06 '16 16:03

Paebbels


People also ask

Does PowerShell 5 work on Windows 7?

Windows PowerShell 5.0 requires Windows Management Framework 4.0 to be preinstalled on Windows Server 2008 R2 SP1 and Windows 7 SP1.

What is the difference between PowerShell 5.1 and 7?

Teams that run Windows PowerShell 5.1 on non-Windows systems had a way to use Visual Studio Code as the source code editor. PowerShell 7 extends support for Visual Studio Code to both macOS and Linux. PowerShell in Visual Studio Code requires installing an extension, which is explained at this link.

What version of PowerShell does Windows 7 support?

PowerShell 2.0 is integrated in all Windows versions since Windows 7 and Windows Server 2008 R2.

Is PowerShell 5 still supported?

PowerShell Support Lifecycle - PowerShell | Microsoft Learn. This browser is no longer supported. Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.


1 Answers

Some features come from the PSReadLine-module that is preinstalled in Win10. You can install this manually from github or by running:

Install-Module PSReadLine

Some features come from Windows 10-enhancements to the console host conhost.exe that is used by default for powershell and cmd. conhost.exeis a part of windows itself and not Windows Management Framework which Powershell is a part of.

like image 187
Frode F. Avatar answered Oct 13 '22 13:10

Frode F.