r/PowerShell • u/CarrotBusiness2380 • 11d ago
News Powershell 7 is coming to Windows
https://devblogs.microsoft.com/powershell/powershell-7-coming-to-windows/
427
Upvotes
r/PowerShell • u/CarrotBusiness2380 • 11d ago
63
u/defcon54321 11d ago
msix is a disaster. They need to bring back the msi until msix works at machine level with 1:1 parity. Hello server core? Noone likes appx.
I can't understand the caustic audacity folks have to remove capability without fixing the underlying problems first. It is probably just wreckless vibe coding at this point.
Everyone is going to run 7.6.9 on servers until something meaningful changes. This is a much worse situation leaving folks vulnerable without a path forward.
317
u/Taftimus 11d ago
Where else would it come
38
u/Jeriath27 11d ago edited 11d ago
Now, can they PLEASE update their fucking server system modules to actually work in PS7 properly. I was ready to move to PS7 with my new 2022 servers at work but I can't because exchange cmdlets STILL don't work with it
30
u/C0rn3j 11d ago
Can't wait for my installations to come with 5 versions of powershell in a couple years, none of which are the up to date powershell.
Microsoft should really learn to deprecate things and just kill them off after a certain date on a build upgrade.
171
u/pt5 11d ago
âŠhuh?! Iâve been using PS7 on Windows for YEARS.
19
u/da_chicken 11d ago
Thank fuck. Only been eight years. -_-
10
u/ITGuyThrow07 11d ago
They should really let Microsoft know. There are still PS modules they publish that don't work on PS7. Their commands for managing Exchange after removing removing Exchange servers is still a snap-in requiring 5.1.
7
u/Artwertable 11d ago
Just checked the removed commands in Core and there some that are for me really important.
Add-ComputerEnable-ComputerRestoreGet-EventLogReset-ComputerMachinePasswordStart-TransactionTest-ComputerSecureChanneletc...I really hope we get a replacement for that or an alias like for such command. That would break the most random stuff in my environment. I use PowerShell 7.x but not our Endpoints.6
u/oubeav 11d ago
Finally. PS7 is great......for Windows.
31
u/mamalukes 11d ago
What about ise?
5
u/engineeringsquirrel 11d ago
It better not have Copilot integration.
8
u/sneesnoosnake 11d ago
5.1 isn't going anywhere, but 7 will also come with Windows.
7
u/belibebond 11d ago
For everyone who hate vscode and fondly miss ISE, make peace with it. For one itâs not going to happen. Secondly vscode offers way more (annoyingly more) than ISE.
For those who said they like ISE for fact that it shipped on all machines so it was easy for one of edit/ quick edit, startup time, run without save etc⊠this is all downside of ISE. Moving to vscode has made me code better (although it felt forced at times). Git and version control which is huge for scripts are native in vscode and non existent in ISE.
3
u/BlackV 11d ago
I'll believe it when I see it :)
but I assume you mean coming inbox to windows, cause its already here otherwise ;)
3
u/neko_whippet 11d ago
So techicly in 27h2 5.1 is removed and 7: is auto installed if not installed already ?
2
u/grimson73 11d ago
Ah therefore they brought back the 5.1 suffix to the shortcuts for windows powershell. It wasnât long ago this suffix was removed but with the October updates itâs back
2
u/darkn3rd 6d ago
Donât care about this, as already use Powershell 7. I donât use MSIX, and install packages with Chocolatey
2
u/sqloid 11d ago
Finally! PS7 should be ship in Ubuntu also.
1
u/upcboy 11d ago
Hopefully they make this move faster that the removal of VBscript⊠it still doesnât have a hard end date.
1
u/RikiWardOG 11d ago
I thought the reason they weren't ever going to do this was because of not being stuck to windows update cycles so they could push faster updates to it?
1
u/sneesnoosnake 11d ago
Domain join and machine account: Add-Computer, Remove-Computer, Reset-ComputerMachinePassword, Test-ComputerSecureChannel â no native replacement. Use netdom/nltest or a 5.1 session.
System Restore: Checkpoint-Computer, Disable-ComputerRestore, Enable-ComputerRestore, Get-ComputerRestorePoint, Restore-Computer â no replacement
Transactions: Complete-Transaction, Get-Transaction, Start-Transaction, Undo-Transaction, Use-Transaction â no replacement
Other: Get-ControlPanelItem, Show-ControlPanelItem, New-WebServiceProxy (for SOAP, use Invoke-WebRequest)
Other modules
Diagnostics: Export-Counter, Import-Counter â relog.exe. Get-Counter still works.
Utility: Convert-String, ConvertFrom-String
CIM: Export-BinaryMiLog
1
u/500Rads 10d ago
Where is it now?
1
u/PencilBoy99 9d ago
It has a parallel task loop that looks nice
1
u/The-WinterStorm 9d ago
Hasn't this been coming to windows since the early days of windows 10? I swear I remember using this as a "test" years ago.
1
u/Over_Dingo 9d ago
Powershell 7.7 and 7.6.10 were released on the same day. Powershell 7.7 is the first to lack .msi package and now only has msixbundle, that is 3x the size.
https://github.com/powerShell/powerShell/releases/tag/v7.7.0
https://github.com/powerShell/powerShell/releases/tag/v7.6.10
1
u/Lost_Term_8080 8d ago
This is going to be ugly.
PS7 is a nightmare to support on system-wide installations that are normal on servers for automation.
Syntax differences will be extremely annoying to deal with, but at least those are largely straightforward. I am extremely concerned about PS 7 being very optimization sensitive to perform adequately. Or the sheer number of non-optional ps profile customizations to make it useful for ad hoc usage that cannot be cleanly centrally managed without mdm.
strict mode and scoping implementation is a little bit different that may or may not require non-obvious script modifications to get to compile.
1
u/CDOS58 5d ago
Release the fucking MSI and knock it off. I'm so tired of this dipshit company.
1
u/itgforlife 2d ago edited 2d ago
One thing that burned me that isn't mentioned in your article is that you have to use
-Forcewhen you import a script if you want the function to be able to reflect updated code after import. This is the default behavior of just about every other programming language I've used e.g. VBA, Python, JavaScript, etc. But it is not the defaault behavior for PowerShell.1
u/xs0apy 10d ago
This is a horrible decision. PowerShell 7 isnât 100% backwards compatible with some important functions not carried over. What. The. Fuck.
-3
u/Any_Presentation3144 11d ago
k
0
u/twisted3motions 8d ago
Stylecraft instinct review