Because Windows 10 ships with Windows PowerShell 5.0 by default, but the WU (Windows Update) component is expected to install a better version automatically, some users have been searching for ways to check PowerShell versions they’re running.
If you use Powershell in a terminal to perform tasks, it’s always a good idea to make sure your code is running the most recent version. It is particularly true if you’re running a version of Windows before 10.
Keep that in mind that starting with version 5.0, PowerShell became a lot more powerful – you now have a lot more leverage over Windows Server, as well as Exchange, Lync, and SQL-based servers.
What is the PowerShell Version?
PowerShell version is a task automation solution that consists of a command-line shell, a scripting language, and a configuration management system that works across platforms. The PowerShell version is compatible with Windows, Linux, and macOS.
PowerShell version is a modern command shell that combines the best aspects of other standard command shells. PowerShell version accepts and returns.NET objects, unlike most shells that only take and return text. The following features are included in the shell:
- Command-line history is extensive.
- Command and parameter aliases are supported.
- Similar to Unix man pages, this is an in-console support system.
- Completion of tabs and command prediction
- Using a pipeline, you can chain commands together.
PowerShell is a language used in scripting that is also widely used to automate device administration. Powershell is also used in CD/CI environments to test, build, and deploy solutions. NET objects are used for both inputs and outputs.
There’s no need to parse text production to get details out of it. These mentioned points are some of the features of the PowerShell scripting language:
- Functions, groups, files, and modules make it extensible.
- Dynamic type system with an extensible type system
- Support for popular data formats such as CSV, JSON, and XML is built-in.
- Formatting method with a lot of flexibility for fast production
How to Check Powershell Version on Windows 7, 10, and 8
1. Check PowerShell Version
- Follow the procedure given below for a simple guide to check the version of the latest PowerShell now that you know what the default versions might look like. Keep in mind that the measures below can be duplicated regardless of the Windows version you’re using.
- For opening the Run command window, press Windows key + R. Then, to open a new PowerShell prompt, type accessible “PowerShell” and click Enter.
- Type the following command into the newly opened Powershell window and press Enter:
- A list of information about your PowerShell utility will appear. PSVersion, on the other hand, is the one that we’re interested in. We already have the most recent version since we used WU to install all of the pending updates.
- Keep that in mind that you can also get your PowerShell version with get-host|Select-Object version or $host. Version.
- If accessible, your Windows 10 and your PSVersion are already 5.0.10586.63. You can upgrade it to the most recent version by running Windows Update and downloading all pending updates.
2. Powershell Version through Get-Host
The definition of hosts is used in PowerShell. The PowerShell engine is hosted by a program called a host. It isn’t the PowerShell engine that is causing the issue. PowerShell hosts are the PowerShell console or a code editor with an integrated terminal.
A host may have a fully self-contained version of PowerShell.
When you use the (Get-Host) version, you’ll note that it returns a version number that appears to be the PowerShell engine version.
You can also search the registry if you don’t want to open PowerShell. The version of PowerShell is stored in the registry key path HKLM:\SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine as a value. PowerShellEngine is a PowerShell engine. Get-ItemProperty can be used to reference the PowerShellVersion value in this registry key.
Different Version of Powershell
1. Powershell 1.0 and PowerShell 2.0
PowerShell core was first released for Windows XP SP2, Windows Server 2003 SP1, and Windows Vista in November 2006. Windows Server 2012 R2 and Windows seven are included in the second edition. PowerShell 2.0 is also available as a standalone package for Windows Server 2003 Service Pack 2 and Windows Vista Service Pack 1, Windows XP Service Pack 3.
2. Version 3 of PowerShell
Microsoft released PowerShell 3.0 with Windows 8, a PowerShell version installed on Windows Server 2008 SP1, Windows 7 SP1, and Windows Server 2012 R2 SP1. Windows XP is not supported by PowerShell 3.0.
3. Version 4 of PowerShell
PowerShell 4.0 is used in Windows 8.1, the successor to Windows 8. It’s also available for Windows 7 Service Pack 1, Windows Server 2008 Service Pack 1, and Windows Server R2 Service Pack 1.
4. Version 5 of PowerShell
Windows Management Framework (WMF) 5.0 includes PowerShell version 5.0. On February 24, 2016, the final version was released. Chocolatey’s repository-based apps are now supported by OneGet PowerShell cmdlets and can handle layer two network switches.
Along with the Windows 10 Update, Windows PowerShell build revision 5. 1 was announced. On January 19, 2017, it was made available to Windows 7, Windows Server 2012 R2, Windows Server, Windows Server 2008 R2, and Windows Server 2016.
The app’s editions were introduced in Windows PowerShell 5.1. The Core edition comes with Windows Server 2016 Nano Server, while the Desktop edition is aimed at standard user and server versions of the operating system.
5. Other versions
Other versions of PowerShell like PowerShell core 6.0, Powershell 7 are to be announced soon.
Installing PowerShell on Windows
There have been several PowerShell releases over the years. Initially, Windows PowerShell was only compatible with Windows systems since it was based on the.NET Framework. PowerShell’s latest release makes use of the.NET 5.0 runtime. PowerShell is available for Windows, Mac OS X, and Linux.
Initiating with Windows Server 2008 R2 SP1 and Windows 7 SP1, Windows PowerShell version installed by default in every Windows.
PowerShell Core should be installed instead of Windows PowerShell if you choose to use PowerShell 6 or later.
Determine Installed PowerShell Version
Since the position of the PowerShell console or the Integrated Scripting Environment (ISE) in Windows changes from one Windows version to the next, it can be challenging to find.
The tables below should assist you in locating PowerShell in your Windows version. There is no tweaking to any of the versions mentioned here; they are all the original versions as published.
FOR USE IN CONSOLE
- Windows 10: select and click the Windows icon in the lower-left corner and type PowerShell.
- Windows 8.1 or 8.0: Start typing PowerShell on the start screen of Windows 8.1 or 8.0.
If you’re on a laptop, click the Windows icon in the lower-left corner and type PowerShell.
- Windows 7 SP1: Click the Windows icon in the lower-left corner, then type PowerShell in the search box.
- Windows 10: select the click on Windows icon in the lower-left corner and type ISE.
- Windows 8.1 or 8.0: On the start screen of Windows 8.1 or 8.0, form PowerShell ISE.
If you’re on a monitor, click the Windows icon in the lower-left corner and select PowerShell ISE.
- Windows 7 Service Pack 1 (SP1): Start typing PowerShell in the search box on the left lower corner Windows icon.
Upgrading the PowerShell Version on Windows
Install Windows Management Framework 5.1, which includes the NET Framework 4.5.2, to upgrade your PowerShell 5.1. (or newer). Using this instruction, verify that NET framework 4.5.2 or higher is installed:
First check your installed powershell version by using this command.
Major minor Build Revision 5 1 19041 610
The above PowerShell version is 5.1
As you can see, the latest PowerShell version 5.1 is already installed, so I don’t need to upgrade further. If, in your case, the PowerShell version is lower than 5.1, then follow the below steps.
- Download the latest .net framework, 4.8
- Extract the downloaded package and install it on your personal computer.
- A reboot is required after installation.
- After reboot, the PowerShell version will be updated.
Powershell is essential software that is now inbuilt in the latest version of Microsoft Windows and other Operating systems. Due to its versatile nature and accessible language, it is necessary to learn Windows Powershell. After going through this piece, you will be easily able to specify the PowerShell version and upgrade it to the latest version.
Do check out our article on Software Reporter Tool
Frequently Asked Questions
What is Windows PowerShell’s purpose?
Windows PowerShell is a robust tool for automating tasks and liberalizing setup. It can automate almost every process in the Windows ecosystem, including Active Directory and Exchange. It’s no surprise that sysadmins and seasoned Windows users have found it helpful.
What edition of PowerShell does Windows 10 come with?
PowerShell is updated from version 5.0 to 5.1 when Windows 10 is first released with automatic updates available. PowerShell is version 5.0 if Windows Updates do not upgrade the initial version of Windows 10.
What is the aim of Windows Server 2008 R2?
Application services—Windows Server 2008 R2 lays the groundwork for business applications like Microsoft Exchange, Microsoft Office SharePoint Services, SQL Server, and others.
What is the contrast between Windows Server 2008 and Server 2008 R2 SP1?
Windows Server 2008 R2 and Windows Server 2008 are two different operating systems. The server edition of Windows Server 2008 R2 is version 6.1 of the operating system. The single most significant point is that Windows Server 2008 R2 is only available for 64-bit platforms; there is no longer an x86 version.