---
title: "PowerShell 7 Ships With Windows as 5.1 Is Deprecated"
canonical_url: https://techorcoffee.com/blog/powershell-7-ships-with-windows-as-5-1-is-deprecated
category: "Tech News"
author: "TechorCoffee"
published_at: 2026-11-23T00:43:00.000Z
updated_at: 2026-11-23T00:43:00.000Z
tags: ["PowerShell 7","Windows 11","Microsoft","PowerShell 5.1","Windows PowerShell","automation","IT admins","Windows Server 2025","KB5137172","command line","scripting","DevOps","sysadmin","Windows Insider","MSIX",".NET","Windows 27H2","enterprise IT"]
---

# PowerShell 7 Ships With Windows as 5.1 Is Deprecated

> Microsoft will ship PowerShell 7 with the next Windows release and retire PowerShell 5.1 after a decade. Here is what changes, what stays, and how to prepare.

## The quick answer

- Microsoft announced on November 17, 2026 that PowerShell 7 will ship with the next release of Windows, replacing Windows PowerShell 5.1 as the in-box shell.
- Windows PowerShell 5.1 is now formally deprecated. It will get no new features, but it is still supported and will keep receiving security updates.
- Your existing scripts do not need to change. PowerShell 7 runs side by side with 5.1, and 5.1 keeps working for now.
- Windows Server 2025 and Windows 11 version 26H2 are the last releases that include 5.1 enabled by default.
- In the next version of Windows, 5.1 becomes an optional Feature on Demand. In a later version, it will be removed entirely.
- The first Insider build with PowerShell 7 built in, Build 29712.1000, arrived on November 20, 2026.

## What Microsoft actually announced

- The PowerShell Team published the announcement on the Microsoft developer blog on November 17, 2026.
- Senior Product Manager Jason Helmick wrote that, beginning with the next release of Windows, PowerShell 7 will be included as the upgrade for Windows PowerShell 5.1.
- The Windows team published a companion support article at the same time, KB5137172, titled "Windows PowerShell 5.1 Deprecation."
- The KB applies to Windows 11 Home and Pro, versions 24H2, 25H2 and 26H2.
- Microsoft framed the change as the answer to its most-requested feature. Shipping PowerShell 7 with Windows has been a goal since PowerShell went cross-platform.
- PowerShell 7 is the modern edition of the shell. Microsoft develops it in the open, across platforms, and it is the only edition getting new features.
- Windows PowerShell 5.1, by contrast, has not been in active development for years. It has carried a huge share of the world's Windows automation anyway, including scheduled tasks, services and admin scripts.
- The announcement has two parts, and they are easy to blur together: PowerShell 7 becomes the in-box shell, and PowerShell 5.1 is deprecated.
- Deprecation is not removal. Microsoft is starting a countdown, but it has not said how long that countdown runs.

## The deprecation timeline, in plain terms

- Microsoft's timeline for Windows PowerShell 5.1 has three phases, and only the first one has a firm date.
- **2026, right now:** Windows PowerShell 5.1 is deprecated. It is no longer in active development and will receive no new features.
- **2026, right now:** Windows Server 2025 and Windows 11 version 26H2 are the last releases that include 5.1 enabled by default.
- **Next version of Windows:** Windows PowerShell 5.1 will still be available as a Feature on Demand, and it will be enabled by default on new installs.
- **A later version of Windows:** Windows PowerShell 5.1 will no longer be available at all.
- Microsoft has not given a date for that final step. The KB says removal timing will be based on usage data and announced in advance.
- The KB will be updated as more information becomes available, according to Microsoft.
- The next version of Windows is widely expected to be Windows 11 version 27H2, though Microsoft has not confirmed that version number in the announcement.
- The practical message for admins is simple: nothing breaks this year, but the direction of travel is now official.

## What happens to your scripts

- Nothing, at least for now. That is the headline message of the PowerShell Team's blog post.
- PowerShell 7 is designed to run side by side with Windows PowerShell 5.1.
- Your existing automation needs no changes. Windows PowerShell 5.1 continues to run your scripts, scheduled tasks and services.
- You move to PowerShell 7 when you are ready, on your own schedule.
- The two shells are separate programs. PowerShell 5.1 runs as powershell.exe, while PowerShell 7 runs as pwsh.exe.
- They keep separate profiles, module paths, event logs and remoting endpoints.
- That separation is both the safety net and the catch. Scripts that work in 5.1 will usually work in 7, but modules and profiles do not carry over automatically.
- Microsoft is investing in tools to make the move easier, including improvements to PSScriptAnalyzer's compatibility checks.
- PSScriptAnalyzer can scan a script and flag commands and modules that behave differently between the two editions.
- Microsoft has also created an Inbox Working Group to identify PowerShell 7 issues on Windows 11, and it is inviting feedback on the PowerShell GitHub page.

## PowerShell 7 vs PowerShell 5.1: the key differences

- The two editions are built on different foundations, which is why this is a migration and not a simple update.
- Windows PowerShell 5.1 is built on the .NET Framework and is Windows-only. It shipped with the Windows 10 Anniversary Update and Windows Server 2016 in August 2016.
- PowerShell 7 is built on modern .NET, is open source, and runs on Windows, macOS and Linux.
- PowerShell 7 is where all new features go. It has been the actively developed edition since it was first introduced in 2019.
- PowerShell 7 adds features 5.1 will never get, including:
  - Cross-platform support for Windows, macOS and Linux
  - Parallel processing with ForEach-Object -Parallel
  - Ternary operators and pipeline chain operators (&& and ||)
  - Improved error handling with Get-Error and better error views
  - New cmdlets and a much faster startup experience
  - SSH-based remoting alongside the traditional WinRM remoting
- Windows PowerShell 5.1 remains the default for some Windows-specific modules, such as parts of the Windows management stack that were never ported.
- Some modules written for 5.1 need the WindowsCompatibility module to run under PowerShell 7, and a small number still will not work at all.
- Microsoft's own lifecycle documentation already said support for Windows PowerShell 5.1 comes through Windows support channels. What is new is the formal deprecation.

![Close-up of a monitor showing a Windows PowerShell terminal window with commands](https://res.cloudinary.com/dlpbk9cau/image/upload/c_limit,w_1400,h_900,f_auto,q_auto/v1795394594/article/qxev2pyvbhgvhdco59bd.jpg)

## The packaging work Microsoft is still finishing

- PowerShell 7 will be delivered as an MSIX package when it ships in the box.
- MSIX still needs work to match some things that worked with the older MSI installer, and Microsoft is open about that.
- The PowerShell Team says it is working to close these gaps before the in-box rollout is complete.
- The gaps are tracked in a public MSIX tracking issue on GitHub, so admins can see exactly what is outstanding.
- The team also says PowerShell 7 needs to earn its place as the trusted automation platform, the way 5.1 did over a decade of service.
- That is why the rollout is phased rather than a single overnight swap.
- The change only applies to future releases. Asked in the blog comments about older clients, Helmick replied that the move is forward only.
- Earlier versions, including 26H2, keep Windows PowerShell 5.1, which remains supported and receives security updates for the life of each Windows version.

## The first Insider build already has it

- Microsoft moved quickly from announcement to a real build.
- Windows 11 Insider Preview Build 29712.1000 arrived on November 20, 2026 in the Experimental channel, also known as the Future Platforms channel.
- The release notes list a single named change: PowerShell 7 is now in Windows.
- The build notes point readers back to the PowerShell Team's blog for the details.
- Build 29712.1000 appears to be the first Insider build where Microsoft says the in-box change has actually happened.
- The usual Experimental channel caveats apply. Microsoft says these builds can be unstable and may ship with limited documentation.
- The PowerShell change may not reach every Insider at once, and the build contains other unnamed fixes that Microsoft did not list.
- For admins in the Insider program, this is the first chance to test how PowerShell 7 behaves as a built-in part of Windows rather than a separate download.
- For everyone else, the build is a sign that the announcement is already turning into shipping software.

## What admins should do now

- The change is real, but there is no emergency. Microsoft has given admins a long runway, and the smart move is to use it.
- Start by inventorying where PowerShell 5.1 is used in your environment:
  - Scheduled tasks that call powershell.exe
  - Logon scripts and Group Policy scripts
  - Automation runbooks and deployment pipelines
  - Monitoring and backup scripts written years ago
- Test those scripts under PowerShell 7 on a spare machine or virtual machine.
- Run PSScriptAnalyzer with compatibility rules to flag anything that will behave differently.
- Pay special attention to scripts that depend on Windows-only modules, COM objects, or the Windows PowerShell workflow features that PowerShell 7 does not carry over.
- Where a script needs 5.1, keep it on 5.1 for now. Side-by-side running is supported, and there is no deadline forcing a move this year.
- For new scripts and new automation, Microsoft's recommendation is clear: write them for PowerShell 7.
- New hires and new projects should learn PowerShell 7 first, since that is where Microsoft's documentation and new features are going.
- Watch the MSIX tracking issue if your deployment depends on installer behavior that the old MSI package provided.
- Join the Insider program's Experimental channel on a test machine if you want to see the in-box experience early, but do not roll experimental builds into production.
- Keep an eye on KB5137172. Microsoft says it will update the article as removal timing becomes clearer.

![IT administrator typing on a laptop running a PowerShell automation script](https://res.cloudinary.com/dlpbk9cau/image/upload/c_limit,w_1400,h_900,f_auto,q_auto/v1795394618/article/ht9zpxmucrykiuxjeplv.jpg)

## What this means for home users

- Most home users will notice very little, and that is by design.
- If you have never opened PowerShell, nothing changes for you. Windows will keep working exactly as before.
- PowerShell is mainly a tool for IT professionals, developers and power users who automate tasks.
- The visible change is that the modern shell will be there out of the box, without a separate download from Microsoft or GitHub.
- If you do use PowerShell occasionally, the familiar blue window is still there. PowerShell 7 uses the same blue icon and a similar prompt.
- The main difference you might notice is speed. PowerShell 7 starts faster and runs many commands faster than 5.1.
- You can install PowerShell 7 today from the Microsoft Store or GitHub, side by side with 5.1, and try it without changing anything about your system.
- If a tutorial or script you find online says "run in PowerShell 7," that instruction is now the default recommendation rather than an optional extra.

## Why this took so long

- PowerShell 7 has existed since 2019, so the obvious question is why it took until 2026 to ship it with Windows.
- The short answer is compatibility. Windows PowerShell 5.1 is embedded in an enormous amount of automation, much of it written years ago and rarely touched since.
- Breaking that automation would have been far worse than waiting.
- Microsoft needed the packaging story to work, the compatibility tooling to mature, and a deprecation path that gave enterprises years of warning.
- The shift to MSIX packaging is part of that story. The in-box shell has to update through the Store and the operating system, not through a standalone installer.
- The timing also lines up with the Windows 11 26H2 generation. With 26H2 as the last release to include 5.1 by default, the next release becomes the natural point to flip the default.
- For Microsoft, this is also a statement about where Windows automation is heading: open source, cross-platform, and developed in public on GitHub.
- PowerShell 7's development in the open means its roadmap, issues and release notes are all public, which is a sharp change from the closed development of 5.1.

## The bottom line

- PowerShell 7 is coming to Windows, and Windows PowerShell 5.1 is now officially on its way out.
- Nothing breaks today. Scripts keep running, 5.1 keeps getting security updates, and the two shells run side by side.
- But the direction is now set in writing, in a Microsoft blog post and a support article, not just in conference talks.
- Admins should start testing now, write new automation for PowerShell 7, and keep an eye on the removal date Microsoft has promised to announce in advance.
- For a tool that has run the world's Windows automation for a decade, that is a respectful exit. And for PowerShell 7, after seven years as an optional download, it is finally a promotion to the main stage.

---
Canonical HTML version: https://techorcoffee.com/blog/powershell-7-ships-with-windows-as-5-1-is-deprecated
