r/PowerShell • • 7d ago

Solved Is MS really replacing PowerShell?

[deleted] — view deleted post

0 Upvotes

18 comments sorted by

View all comments

1

u/LanternSquid 7d ago

PowerShell is alive and well.

Microsoft is replacing Windows PowerShell 5.1 with PowerShell 7. PowerShell itself isn’t going away. On November 17, 2026, Microsoft deprecated 5.1 and announced that the next Windows release will include PowerShell 7.

Existing scripts and scheduled tasks that call powershell.exe will continue to run in 5.1 while it’s installed. PowerShell 7 uses pwsh.exe and runs alongside it. Version 5.1 will keep receiving security updates according to the Windows lifecycle.

Microsoft plans to remove it in a future Windows release and hasn’t announced a removal date.

I’d use PowerShell 7.6 LTS for new scripts and test existing jobs under pwsh.exe before switching them. Pay particular attention to jobs that run as SYSTEM. Microsoft is still working through gaps in the newer MSIX installer that affect scheduled tasks, services, and remoting.

See: https://devblogs.microsoft.com/powershell/powershell-7-coming-to-windows/