October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
Redmond desk4 min

Windows PowerShell vs. PowerShell 7: What You Need to Know

Windows PowerShell 5.1 and PowerShell 7 are separate products. Learn how they differ, when legacy modules still need 5.1, and how to choose or install the right shell.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Windows PowerShell 5.1 and PowerShell 7 are separate products. Windows PowerShell 5.1 is the Windows-only shell built on .NET Framework; PowerShell 7 is its newer, cross-platform continuation, built on modern .NET. Installing PowerShell 7 does not remove or replace 5.1, so the right choice depends mainly on whether the scripts and modules you rely on work in the newer shell.

What is Windows PowerShell?

Windows PowerShell is Microsoft’s Windows-only command shell and scripting environment. Its latest version is 5.1, which uses the full .NET Framework and no longer receives new features. Microsoft says it is supported according to the lifecycle of the Windows version on which it runs. Microsoft’s Windows PowerShell overview explicitly distinguishes it from the newer PowerShell product.

PowerShell 7 is the modern continuation: it is built on newer .NET and runs on Windows, Linux, and macOS. On Windows, both products can be installed at once. They have distinct executable names, installation locations, profiles, module paths, remoting endpoints, and event logs, so having PowerShell 7 does not mean Windows PowerShell 5.1 has disappeared. Microsoft’s Windows installation guide covers how the products coexist.

Windows PowerShell 5.1 vs. PowerShell 7

What differs Windows PowerShell 5.1 PowerShell 7
Operating systems Windows only Windows, Linux, and macOS
.NET foundation Full .NET Framework Modern .NET
Executable on Windows powershell.exe pwsh.exe (also launched by entering pwsh in a terminal)
Product relationship Windows-bundled product; 5.1 is its latest version Separate product that can be installed alongside 5.1
Modules and scripts Needed by some Windows-specific or legacy workflows Many workflows work, but compatibility must be checked for the specific modules and scripts

Microsoft describes Windows PowerShell and PowerShell as “two separate products.” For more detail on behavior differences, see the PowerShell version differences guide.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
PowerShell for Sysadmins: Workflow Automation Made Easy
  • Book - powershell for sysadmins: workflow automation made easy
  • Language: english
  • Binding: paperback

How to tell which shell you are using

Check the executable name or ask the running shell for its version:

  • powershell.exe starts Windows PowerShell 5.1.
  • pwsh.exe starts PowerShell 7; in a terminal, you can usually launch it by typing pwsh.
  • Run $PSVersionTable.PSVersion in either shell to see the version of the current session.

The executable matters when launching scripts from shortcuts, scheduled tasks, terminal profiles, or other applications: a command that starts one product does not automatically start the other. Windows PowerShell ISE is a separate editor and works only with Windows PowerShell 5.1.

Which version should you use?

Use PowerShell 7 for new or cross-platform work

PowerShell 7 is the sensible starting point for new scripts when the required modules and commands support it. It is the cross-platform product, and Microsoft continues to publish its releases and support information on the PowerShell support lifecycle page.

Keep Windows PowerShell 5.1 for dependencies that require it

Some older or Windows-specific modules still require Windows PowerShell. If an essential module or workflow fails in PowerShell 7, continue running that task in 5.1 while you check whether the module has a supported alternative or a compatible version. Do not assume a script is portable simply because its commands look the same: scripts that call .NET methods directly can behave differently across the two .NET foundations.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Test the workflow, not just the script file

Before changing a production task or a team’s default shell, test the actual script together with its required modules, credentials, remoting, scheduled-task settings, and any .NET calls. Microsoft’s migration guide identifies differences including executable names, module paths, profiles, remoting endpoints, and event logs. A script that opens successfully may still depend on a module, endpoint, or path configured only for the other product.

Can PowerShell 7 run Windows PowerShell modules?

Sometimes. PowerShell 7 includes a Windows Compatibility feature that can make some Windows PowerShell modules available through implicit remoting. It starts a background Windows PowerShell 5.1 process, creates a session named WinPSCompatSession, and exposes compatible commands in the PowerShell 7 session. This is a bridge, not a guarantee that every module will work exactly as it does when loaded directly in 5.1.

Check the required module and its commands in the intended workflow before relying on the feature. Some modules still need to run directly in Windows PowerShell 5.1. Microsoft documents the feature and its limitations in the Windows PowerShell compatibility reference.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

How to install PowerShell 7 on Windows

Microsoft documents several Windows installation methods. Its guide recommends WinGet for client computers and describes MSI as suitable for Windows Server and enterprise deployment. Choose based on your device, deployment needs, and package requirements; check the current guide for availability and prerequisites.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Method Best fit described by Microsoft Consideration
WinGet Windows client computers Check the current guide for package availability and requirements.
MSI Windows Server and enterprise deployment Useful for managed installation scenarios.
MSIX Casual users Has limitations; confirm they fit your use case.
ZIP Side-loading or keeping multiple versions Requires using the extracted installation as appropriate for your setup.
.NET Global Tool Developers already using .NET global tools Best suited to that existing developer workflow.

Follow the current PowerShell installation instructions for Windows for exact commands, supported packages, and system requirements. After installation, start PowerShell 7 with pwsh; Windows PowerShell remains available as powershell.exe.

PowerShell support and current versions

PowerShell 7 releases have different support tracks, and their status changes over time. Microsoft’s lifecycle page, retrieved on October 4, 2026, lists PowerShell 7.5.11 as the current Stable release and 7.6.6 as the current LTS release. It also lists 7.4.20, the previous LTS, as supported until November 10, 2026. Treat these as dated version facts rather than permanent recommendations: consult the lifecycle page for the current status before choosing a release. Microsoft says support ends when either the PowerShell version or its target operating system reaches end of life.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.