Beginning in PowerShell 5, the PowerShell console features colorized text, and there is a wealth of other new features provided by a module named PSReadLine.

If you upgraded from an older PowerShell version to PowerShell 5 and are missing the colorized text, you may want to download and install PSReadLine from the PSGallery:

 
PS C:\> Install-Module -Name PSReadLine -Scope CurrentUser 
 

Likewise, if your PS5+ console behaves differently than before, and for example won’t execute pasted text in one chunk anymore, you can always temporarily disable the module:

# disable PS5+ console handler temporarily
Remove-Module psreadline

# re-enable PS5+ console handler again
Import-Module psreadline

Twitter This Tip! ReTweet this Tip!

Anonymous