It's based on Microsoft's PowerShell documentation on Microsoft Learn (the differences, migration, installation and support lifecycle pages), all read on 24 November 2026. Version numbers and dates are as listed by Microsoft on that day.
Open the Start menu on a Windows 11 PC, type "PowerShell" and you'll probably see Windows PowerShell. That's the version built into Windows, and it's been at 5.1 for years. Microsoft's actively developed PowerShell is something else: PowerShell 7, a separate, open-source, cross-platform release that you install yourself. The two have similar names and largely the same language, but they aren't the same program, and they don't replace each other.
If you only ever paste the odd command from a guide, this may not matter much. If you write scripts, automate tasks on your PC or use PowerShell to manage software with winget, it's worth knowing the differences.
The short version
| Windows PowerShell 5.1 | PowerShell 7 |
|---|
Comes with Windows 11 | Yes | No, separate install |
Built on | .NET Framework | Modern .NET (7.6 is built on .NET 10) |
Executable | powershell.exe
| pwsh.exe
|
Platforms | Windows | Windows, macOS and Linux |
Support | Part of Windows, follows the Windows lifecycle | Own lifecycle; 7.6 LTS supported to 14 Nov 2028 |
New features | No | Yes |
Integrated Scripting Environment (ISE) | Yes | No; Microsoft supports VS Code instead |
Why there are two
Microsoft's documentation explains that Windows PowerShell 5.1 is built on the .NET Framework. From PowerShell 6.0 onwards, PowerShell became an open-source project built on .NET Core, which is what allowed it to run on Windows, macOS and Linux. PowerShell 7 continues that line, and each release is built on a newer version of .NET. According to Microsoft, PowerShell 7.4 is built on .NET 8.0 (LTS), 7.5 on .NET 9.0 and 7.6 on .NET 10.0 (LTS).
Microsoft says there are "few differences in the PowerShell language between Windows PowerShell and PowerShell". The bigger differences come from the move away from the .NET Framework, which removed some older features and changed how some .NET methods behave.
Windows PowerShell 5.1 hasn't gone away. Microsoft's lifecycle page says Windows PowerShell is a component of the Windows operating system and follows the Windows support lifecycle, with support provided through Windows support channels. It's the stable, always-there option, but it isn't getting new features.
They run side by side
The most important practical point is that installing PowerShell 7 doesn't remove or replace Windows PowerShell 5.1. Microsoft says PowerShell 7 installs to a new directory and runs side by side with 5.1. Specifically:
Different install folders. Windows PowerShell 5.1 lives in C:\Windows\System32\WindowsPowerShell\v1.0, while PowerShell 7 installs to C:\Program Files\PowerShell\7.
Different executables. Windows PowerShell is powershell.exe. PowerShell 6 and later is pwsh.exe. Microsoft says the new name was chosen to support side-by-side installations.
Separate profiles. Your profile script for 5.1 lives in Documents\WindowsPowerShell; for PowerShell 7 it's in Documents\PowerShell. If you've customised 5.1 with aliases or functions, you'll need to copy them across.
Separate module folders, with overlap. PowerShell 7's module path includes the Windows PowerShell module folders as well as its own, so it can autoload many modules you already have.
Separate event logs.
So you can install PowerShell 7, try your scripts in it and keep 5.1 for anything that doesn't work.
What PowerShell 7 adds
Microsoft's migration page lists these headline improvements over Windows PowerShell 5.1:
New language features, such as ternary operators and ForEach-Object -Parallel for running script blocks in parallel
Improved performance
SSH-based remoting, alongside the older WS-Management remoting
Cross-platform interoperability and support for Docker containers
Improved compatibility with existing Windows PowerShell modules
Since PowerShell 7.2, Microsoft also lets PowerShell 7 get updates through Microsoft Update, so it can be kept up to date through Windows Update. In the MSI installer, this is controlled by the USE_MU and ENABLE_MU options, both on by default.
What PowerShell 7 drops or changes
This is where older scripts and guides trip people up. Microsoft lists modules and cmdlets that aren't included in PowerShell 7. The ones most likely to matter on a home PC are:
The ISE. The Windows PowerShell ISE only supports Windows PowerShell. Microsoft says Visual Studio Code with the PowerShell extension is the supported scripting environment for PowerShell 7. The extension even has an Enable ISE Mode option for a familiar layout. Microsoft says there are no plans to add new features to the ISE, but also no plans to remove it permanently.
WMI v1 cmdlets. Get-WmiObject, Invoke-WmiMethod, Set-WmiInstance, Remove-WmiObject and Register-WmiEvent are gone. Microsoft says the cmdlets in the CimCmdlets module (also known as WMI v2) perform the same function, with a redesigned syntax. Lots of older "how to check your hardware" snippets online still use Get-WmiObject, so expect those to fail in pwsh.
Event log cmdlets. Get-EventLog and the other *-EventLog cmdlets were removed. Use Get-WinEvent instead.
System Restore cmdlets. Checkpoint-Computer, Enable-ComputerRestore, Disable-ComputerRestore, Get-ComputerRestorePoint and Restore-Computer are on Microsoft's removed list. If a guide tells you to make a restore point with Checkpoint-Computer, run it in Windows PowerShell 5.1.
PowerShell Workflow, snap-ins and the *-Transaction cmdlets.
There are also subtle .NET differences. Microsoft's example is the string Split() method: in 5.1, "1111p2222q3333".Split('pq') splits on either character, but in PowerShell 7 the same command doesn't split at all, because .NET added new overloads. You need .Split([char[]]'pq') instead. It's a reminder to test scripts rather than assume they'll behave identically.
For modules that still need the full .NET Framework, Microsoft added a compatibility feature. Import-Module -UseWindowsPowerShell loads the module through a background Windows PowerShell process, so you can still use it from PowerShell 7. Microsoft says most commonly used modules, including Azure PowerShell and Active Directory, already work in PowerShell 7.
How to install PowerShell 7
Microsoft's installation page lists several methods and recommends winget for Windows clients. Winget is included in Windows 11 as part of App Installer (see our guide to installing apps with winget). From a Terminal or command prompt:
winget install --id Microsoft.PowerShell --source winget
Microsoft notes that from the PowerShell 7.6.0 winget package onwards, winget installs the MSIX package by default. If you want the traditional MSI installer instead, add --installer-type wix. Microsoft also says that from PowerShell 7.7.0, no MSI package will be available.
The difference matters a little. Microsoft lists these limitations of MSIX/Microsoft Store installs: they install for a single user only, run in an application sandbox that virtualises some file and registry locations, don't support PowerShell remoting and can't modify system-level settings stored in $PSHOME. In return you get automatic updates built into Windows. For most home users who just want a modern shell, MSIX is fine. If you use remoting or need an all-users install, choose the MSI.
You can also install from the Microsoft Store, or download the MSI or ZIP packages from GitHub. Microsoft's migration guide calls the ZIP package the easiest way to try PowerShell 7 before committing to a full installation.
Which version should you install?
PowerShell 7 has two release types. LTS (Long Term Servicing) releases match .NET LTS releases and only get critical security and servicing fixes. Stable releases get fixes and new features but have shorter support. On 24 November 2026, Microsoft's lifecycle page listed:
Version | Type | Released | End of support |
|---|
PowerShell 7.6 | LTS | 18 March 2026 | 14 November 2028 |
PowerShell 7.5 | Stable | 23 January 2025 | 10 November 2026 |
PowerShell 7.4 | LTS | 16 November 2023 | 10 November 2026 |
With 7.4 and 7.5 at the end of their support dates, PowerShell 7.6 is the version to install. Microsoft lists 7.6.6 as the current LTS release and only supports the latest update of each release, so keep it updated. Version 7.7 is in preview, and Microsoft says preview versions aren't officially supported and shouldn't be used in production.
Choose Windows PowerShell 5.1 if...
You only run the occasional command from a guide and don't want to install anything
You rely on the ISE, or on scripts that use WMI v1, event log or System Restore cmdlets
You're using older Windows-only modules and don't want to deal with compatibility workarounds
Choose PowerShell 7 if...
You write or maintain scripts and want new language features such as ForEach-Object -Parallel and ternary operators
You want a shell that's still being actively developed and updated
You also use macOS or Linux, or want SSH-based remoting
You're happy to edit scripts in VS Code rather than the ISE
Our verdict
For most people who use the command line regularly, install PowerShell 7.6 (the current LTS) with winget install --id Microsoft.PowerShell --source winget and make it your everyday shell, but keep Windows PowerShell 5.1. There's no reason to choose, because Microsoft designed them to run side by side with separate executables (pwsh.exe and powershell.exe), profiles and install folders. Use PowerShell 7 for new work, and fall back to 5.1 for the ISE, older scripts and cmdlets Microsoft removed, such as Get-WmiObject, Get-EventLog and Checkpoint-Computer. If you only open PowerShell once in a while to paste a command, the built-in version is perfectly adequate.