r/sysadmin • u/Borgquite Security Admin • 5d ago
Windows PowerShell 5.1 Deprecation
Windows PowerShell 5.1 is deprecated. It's no longer in active development. Windows PowerShell 5.1 is still part of Windows, and it's still supported. It will continue to receive security updates according to the lifecycle of each version of Windows. Scripts and tools that rely on it will continue to run.
Windows PowerShell 5.1 will be removed from a future version of Windows. Timing will be based on usage data and communicated in advance.
Microsoft recommends upgrading to PowerShell 7, the upgrade from Windows PowerShell 5.1. For more information, see Migrating from Windows PowerShell 5.1 to PowerShell 7.
Timeline
2026: Windows PowerShell 5.1 is deprecated. Windows Server 2025 and Windows 11, version 26H2 are the last versions of Windows to include PowerShell 5.1 enabled by default.
Next Version of Windows: Windows PowerShell 5.1 will be available as a Feature on Demand (FOD), enabled by default on new Windows installs.
Future Version of Windows: Not available.
At the moment there are many, many Windows management PowerShell modules built in to that aren’t supported in PowerShell 7 - they are either completely untested, or they only work via the (PowerShell 5.1 dependent) compatibility layer. Does this mean we can expect new native modules, or everything to just break? #notholdingmybreath
Affected modules:
- Domain Controller deployment (ADDSDeployment)
- ADFS
- AppLocker
- AppvClient
- BestPractices
- ClusterAwareUpdating
- ConfigCI
- DFSR
- DhcpServer
- DISM (presently has issue with MSIX installer)
- FailoverClusters, FailoverClusterSet
- GroupPolicy
- Both IIS management modules (IISAdministration, WebAdministration)
- IpamServer
- iSCSI, IscsiTarget
- ISE
- Microsoft.PowerShell.ODataUtils
- MsDtc
- NetLldpAgent
- NetWNV
- NetworkController, NetworkControllerDiagnostics
- NetworkLoadBalancingClusters
- PersistentMemory
- PKI
- Provisioning
- PSDesiredStateConfiguration (partially supported)
- PSScheduledJob
- PSWorkflow, PSWorkflowUtility
- RemoteAccess
- RemoteDesktop
- ServerCore
- ServerManagerTasks
- SMS
- StorageBusCache
- StorageMigrationService
- StorageReplica
- SystemInsights
- TLS
- UpdateServices
EDIT: The following PowerShell modules are also currently Windows PowerShell 5.1 only:
- AzureADHybridAuthenticationManagement
- SharePoint Online Management Shell
- Power Platform admin modules
- Systems Center Operations Manager (SCOM)
- Systems Center Virtual Machine Manager (SCVMM)
- Entra Connect (Azure AD Sync)
https://learn.microsoft.com/en-us/powershell/windows/module-compatibility?view=windowsserver2025-ps
55
u/tjhensman 5d ago
Which if you run a hybrid entra environment and rotate your monthly Kerberos keys they literally say not to use ps7 and only use 5.1. So this will become interesting.
29
u/bcredeur97 5d ago
God forbid they update everything to work perfectly with 7 and make it pre installed in windows
8
u/FlyingStarShip 5d ago
🤡 from MS. You can add sharepoint online module to the list
138
u/gslone 5d ago
From my thankfully limited experience with official Powershell Modules and compatibility: Expect everything to break with no fix or clunky workarounds for years.
34
u/Xetrill 5d ago
MS has to make this work. Its a case of Hyrum's Law. There are millions of automation, deployment, provisioning scripts out there. Heck, I use PS to generate documentation as well.
39
u/NoDevelopment206 5d ago
The scary part is that the list at the bottom is mostly the stuff sysadmins actually touch every week, like GroupPolicy, DhcpServer, DFSR and the IIS modules. The compat layer works but it runs them through a 5.1 process in the background, so you still depend on 5.1 and just get weird type and serialization quirks on top. I would start by grepping all your scheduled tasks and scripts for those module names so you at least know how much is tied to it before the removal date gets announced.
10
u/Gerane 5d ago
I have a feeling there are going to be a huge number of people that get totally blind sided by this because they don’t realize how often they are using the compatibility layer.
18
u/SevaraB Sr. Engineer (N+, CCNA) 5d ago
Deprecated, but ships enabled by default until removal. That’s not a transition, that’s a cutover. Freaking Microsoft…
5
u/meatballwrangler 5d ago
oh boy this will certainly go well. it's not like the only useful PS modules are all exclusive to 5.1
5
u/FlaccidSWE 5d ago
I suspect this will eventually really suck...
5
u/OGUnknownSoldier 5d ago
I just have to say, thank you for saying deprecation. All of my freaking co-workers call it depreciation and seem unable to comprehend the difference. Drives me bananas lol
15
u/Euphoric-Blueberry37 IT Manager 5d ago
They can pry my precious baby girl ISE from my cold dead hands, nothing will make me switch to VSCode. 5.1 is my baby and must be protected
3
u/P1nCush10n 5d ago
Guess it’s time to republish all my azure runbooks as 7.x and see what breaks. Yay. More billable hours!?! Ugh.
2
u/Fuzzy_Paul 5d ago
A other fine product gone. The native ide was a good one. The ps7 ide is not there and the vsc is no good at all with ps7. I already converted the stuff to ps7 but not happy with it. The shitshow will start in a couple of years all over. What's new in the deteriorating eco.
2
u/tmontney Wizard or Magician, whichever comes first 5d ago
I mean, I feel like this has been the unspoken truth for years now. I'm not sure the last time PS51 got a feature update. Since PS7 is replacing it automatically in the future, this is a much welcome change.
4
u/Appropriate-Border-8 5d ago
I installed PowerShell 7 and lost the ability to use the Run As Another User function on my desktop. I had to get around that by using a jump server VM and logging into it with the account that I wanted to Run As. I can still use Run As with 5.1.
2
u/Background-Art8014 5d ago
will microsoft magically fix any of our thousands of broken scripts after migrating to pwsh 7? yeah...didn't think so.
1
u/TotallyWorksAtWoTC 5d ago
1
u/viral-architect Sysadmin 5d ago
Whatever the lowest version that comes with Windows and gets Windows Updates is what goes on the servers. We don't install Powershell 7 on servers because it has it's own update cycle that we would also have to manage seperately.
If it works on 5.1, chances are, it'll work in 7+, so that's my baseline.
-10
u/angrydave 5d ago
Ya’ll still using powershell 5.1?
2
u/EAT-17 5d ago
Obligatory fuck Microslop from my end.
0
u/[deleted] 5d ago
[deleted] — view deleted comment