PowerShell: Install, Print Version

By Xah Lee. Date: . Last updated: .

PowerShell is scripting language created by Microsoft, first released in 2006. There are different version of PowerShell and name change over the years. Here's important name and version you should know.

PowerShell Core
Is PowerShell version 6 (released in 2018) or later. It is the new, cross platform version of PowerShell, available for Microsoft Windows, Mac, Linux.
Microsoft PowerShell
Is PowerShell version 5 (released in 2016) or version before. it is for Microsoft Windows only. This is bundled in every Windows 10. It is no longer developed.

Download

Download the new Cross Platform version for Windows, Mac, Linux at https://github.com/PowerShell/PowerShell

Start PowerShell

Microsoft Windows

In Windows, press ❖ Window (or ❖ Window+r) then type:

pwsh
Start PowerShell version 6 or later, if you have it installed.
powershell
(No longer developed) Start PowerShell version 5 or earlier.

Mac

Type pwsh to start it.

Linux

Type pwsh to start it.

Exit

type exit to quit.

Cancel/Abort a Command

Press Ctrl+c to cancel a command.

Useful when you run some command by that took too long or by mistake.

Print Version

Type $PSVersionTable

powershell windows 2021-01-10 SgYJZ
powershell on Windows 2021-01-10
powershell macos 2020-03-19 8jtfn
PowerShell on MacOS, 2020-03-19
2017 05 09 162151 705x535 scrot
powershell on linux 2021-01-16

Set Windows Console Font Size

Ctrl + scroll mouse wheel
increase/decrease font size for current window.
Alt+Space p
Set up font size for current window.
Alt+Space d
Set up default font size.
Windows 10 console setting 2021-05-23 hmkds
Windows 10 console setting 2021-05-23
Windows 10 console setting 2021-05-23
Windows 10 console setting 2021-05-23

PowerShell: Builtin Help

PowerShell: Builtin Help

PowerShell

How-to

Advanced

Script Examples