r/PowerShell • • 6d ago

News Powershell 7 is coming to Windows

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

158 comments sorted by

61

u/defcon54321 6d 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.

14

u/whyyoutube 5d ago

This is me speaking as a complete casual. I installed powershell 7 via winget and you can't change the execution policy, even when you run powershell 7 as administrator. I later realized they were doing this on the latest version 7.7 via MSIX. So now I installed 7.6.9 via MSI and have no plans to go to a later version until this issue is resolved.

11

u/ankokudaishogun 6d ago

I can't understand the caustic audacity folks have to remove capability without fixing the underlying problems first.

It's usually a mix of managers wanting to push the "new" product and pride of the engineers who developed the new product.
They might be the same persons.

6

u/Alaknar 5d ago

MSIX is great for userland. Deploying PS7 via MSIX is ridiculous, tho.

3

u/a_aniq 5d ago

I am sticking with msi. Don't need additional complexity.

1

u/Alaknar 5d ago

Kind of depends on how you interpret "complexity".

Is "cleaning up the leftover mess after the application was removed" part of the complexity? If so, MSI adds additional complexity, right? (sure, not always, but it's part of the problem - a lot depends on the developer of the software).

MSIX guarantees that when you remove the application, everything gets removed, no trash is left, which I personally like.

1

u/a_aniq 5d ago

I follow the policy of bundling everything in the app folder. Hence there is no problem if I delete those files.

The only problem is registry edits.

4

u/Mr_ToDo 5d ago

It is a little nuts to push out such a big change in direction and right after announce it's going to ship with windows

If they don't fix those blocking issues in the shipping release it's going to be a mess

I mean it's so bad that the article actually links to the issue tracker(I like that it's there, but it doesn't speak well for the product)

1

u/mrtaurus 2d ago

Sometimes, the vulnerabilities need updates too. you know?

313

u/Taftimus 6d ago

Where else would it come

133

u/JustOneMoreMile 6d ago

In its pants

30

u/xueimelb 6d ago

Better its pants than my pants

9

u/flashx3005 6d ago

😂😂😂

4

u/AGsec 5d ago

Why, it ran out of socks?

2

u/Lets_Go_2_Smokes 6d ago

The shower is sticky

12

u/Cutoffjeanshortz37 6d ago

Well, it is trying to become cross platform, but this title is /r/TitleGore

6

u/FRESH_TWAAAATS 5d ago

powershell runs on mac and linux

2

u/0f_rice_and_men 5d ago

There is a pwsh package for MacOS believe it or not :D

1

u/elglas 6d ago

Dos when? :D

1

u/MLCarter1976 5d ago

It came without packages, it came without bows......

1

u/Schmatter_Raphiqui 3d ago

is it actually preinstalled out of the box now instead of needing a separate installer

38

u/Jeriath27 6d ago edited 6d 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

39

u/BlackV 6d ago

ow, can they PLEASE update their fucking server system* modules to actually work in PS7 properly.

Magic 8-ball says:

Outlook not good

10

u/fuckyouabunch 6d ago

Outlook was never good, but that's all people will use

4

u/rismoney 5d ago

Word.

2

u/BlackV 6d ago

Different outlook, but you're not wrong for sure

4

u/0f_rice_and_men 5d ago

I think long term, they are going to abandon anything local.

We will all jam our dicks into a PIV laptop reader for signing into our Copilot VDI where you can lease an Azure terminal session when you need to customize anything. USB and traditional disks will look like ancient artifacts to anyone born after 2020

2

u/ITGuyThrow07 5d ago

Seriously. They have a snap-in for managing Exchange after removing Exchange servers. You can't load snap-ins in PS7.

30

u/C0rn3j 5d 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.

14

u/cloudAhead 5d ago

Microsoft's secret sauce is that they avoid breaking changes as much as possible. Windows still ships with the VB6 runtime, even though VB6 reached EOL almost 20 years ago.

9

u/C0rn3j 5d ago

Microsoft's secret sauce is that they avoid breaking changes as much as possible.

I am aware, it's a horrible approach, and it's why they still have bugs in latest W11 that were introduced literal decades earlier.

I am so glad that I cannot create a directory named COM in W11 because someone needed to use that quirk in DOS back in the 90s, or that an application can die and the tray won't be cleaned up until you hover over it, because what if someone relied on that behavior back in 2001 on Windows XP...

Want your AUX/COM/etc ancient behavior? Spin up a container/VM with an ancient Windows release, and let me have a working system.

4

u/ChiefWetBlanket 5d ago

That's not even a DOS thing. The restricted names for folders comes from CP/M. And it makes sense if you understand how OSes handle that specific name internally.

2

u/C0rn3j 5d ago

The restricted names for folders comes from CP/M

So something that died almost 20 years earlier than DOS, great, it's there because someone last used it in 1983.

it makes sense if you understand how OSes handle that specific name internally

Of course, it makes perfect sense, if we're in the early 80s.

What's the reason the limitation needs to be there in modern systems? Inertia.

5

u/ChiefWetBlanket 5d ago

You don't understand it, and it shows.

How do you think Windows does to make a call to a COM port?

1

u/C0rn3j 5d ago

Let me guess, the same way as in 1983?

4

u/Lost_Term_8080 4d ago

Sit down.

1

u/redbirdrising 4d ago

Yeah, probably because office still uses VBA. Which actually makes me kind of invaluable because I initially was taught VB6.

170

u/pt5 6d ago


huh?! I’ve been using PS7 on Windows for YEARS.

111

u/db_newer 6d ago

They mean built-in with Windows

20

u/pt5 6d ago

So replacing PS5 or just shipping in addition to it by default?

14

u/sarge21 6d ago

Click and read the article

89

u/felix1429 6d ago

How dare you suggest such a thing

26

u/kennyj2011 6d ago

So RTFM? Lol

12

u/felix1429 6d ago

I mean it's a blog post, but sure

8

u/RyeonToast 6d ago

That's practically a manual these days. I find most of my good Windows info on forum and blog posts. Now I'm an old man shaking my fist at the clouds because the modern platforms want to make you log in to view posts. How am I gonna look up these errors! <FistShaking />

5

u/krinkko 6d ago

I want to speak to your supervisors

2

u/SkynetUser1 6d ago

Bold of you to expect that I can read! I'm dictating this to my cat right now.

Also, bring treats over. Me, the human, demands cat treats!

1

u/Alaknar 5d ago

You know what? I just had the realisation that this MIGHT be the reality soon-ish, where people interact with the Internet via AI Agents...

0

u/[deleted] 6d ago

[deleted] — view deleted comment

8

u/sarge21 6d ago

You don't have to guess. They tell you in the article

14

u/RandomSkratch 6d ago edited 6d ago

They’re integrating Windows PowerShell 5.1 (that comes built-in) with PS7. It’ll have a SxS mode for those things that don’t work in 7.
I misunderstood the article (the KB linked in it has better details). 7 will just be included by default with 5.1 moving to FOD. Thanks to u/BlackV for the correction below.

8

u/BlackV 6d ago

They’re integrating Windows PowerShell 5.1 (that comes built-in) with PS7.

they're not, they are just pre-installing powershell 7 and moving 5.1 to FOD

it'll use the same compatibility mode its always used for vesion 5 modules

3

u/RandomSkratch 6d ago

I totally misunderstood the article then, thanks for the correction.

1

u/BlackV 6d ago

good as gold

0

u/tvcats 6d ago

You didn't misunderstood anything. You missed the following line:

The Windows team has published the details in KB5137172

0

u/BlackV 6d ago

Did seem real odd to link off to a kb article and not include in the main

2

u/BlackV 6d ago

I hope they get it right, I hope very much

guess we'll ind out in 27h2

3

u/sarge21 6d ago

The article explains

19

u/da_chicken 6d ago

Thank fuck. Only been eight years. -_-

10

u/ITGuyThrow07 5d ago

Windows PowerShell 5.1 is deprecated. It's no longer in active development.

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 5d ago

Just checked the removed commands in Core and there some that are for me really important.

  • Add-Computer
  • Enable-ComputerRestore
  • Get-EventLog
  • Reset-ComputerMachinePassword
  • Start-Transaction
  • Test-ComputerSecureChannel
  • etc...

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.

9

u/Ok_SysAdmin 5d ago

That's some pretty important commands, there better be replacements

3

u/Raskuja46 3d ago

You know there won't be. They'll bungle this like they've been bungling everything else for the last several years.

1

u/cloudAhead 5d ago

Get-WinEvent instead of Get-EventLog, no? I know it's unfashionable, but net.exe,netdom.exe still does the job on adding computers, resetting passwords, secure channel testing.

4

u/sneesnoosnake 5d ago

Yes let's go back to batch files. Which is essentially what I am doing writing "& some command.exe..."

6

u/oubeav 6d ago

Finally. PS7 is great......for Windows.

6

u/SupremeDictatorPaul 6d ago

I mean, it’s pretty great on Linux too, it’s just that since it’s uncommon, no guides or anything are built to use it. PWSH’s ability to use objects on the command line is just plain superior to bash text pipelines. Of course, with using AI to actually create and run command lines becoming more common, it’s becoming a bit of a moo point. Soon it won’t matter what the shell is, as long as it provides access to the needed functionality.

-1

u/deafphate 6d ago

Powershell is a great, but essentially is worthless on Linux since it doesn't have access to the legacy dotnet libraries. Was very excited when it was announced and very disappointed. 

6

u/wonkifier 5d ago

Powershell is a great, but essentially is worthless on Linux

Weird, considering I use pwsh on Linux as my primary tool for managing things in the $ multi-billion company I work for.

So worthless that people keep coming to me to model interactions until we understand them, so they can go implement things in their "proper" systems... and then I'm called on for future troubleshooting since their "proper" systems don't have the flexibility to dig around when the real world doesn't match documentation.

Heck, we've saved millions over the years just on companies we haven't had to contract with to handle merger and divestiture data handling for internal systems, because pwsh was flexible enough to explore the data for eventual planning, and often to be the data transformation mechanism.

Could we do that all with other languages/platforms? Sure. But not nearly as easily. (:shudders at the memories of piles of temp files being processed by batch commands:)

5

u/ankokudaishogun 6d ago

so far I still find it incredibly useful for JSON, CSV, file manipulation, and, unexpectedly, process identification(which, to be fair, has been useful mostly for wine shenanigans)

2

u/dathar 5d ago

I end up using pwsh on Linux to interact with APIs because it is a bit easier for me than Python. Place I work at primarily uses SaaS and Microsoft has Graph REST endpoints everywhere so I just hit that up directly. I have my native JSON tools and working with objects already there. Only recent bummer was that they broke -followrellink a little while ago.

31

u/mamalukes 6d ago

What about ise?

51

u/skadann 6d ago

I got bad news for you.

3

u/mamalukes 6d ago

:( 

11

u/cloudAhead 6d ago

ISE is going to go live on a farm upstate.

32

u/ribsboi 6d ago

Man I love ISE. I just can't get myself to use VSCode or something else. It just works and it's on every Windows device

37

u/Leviticus_Sux 6d ago

I was the same as you for a while, but I'm telling you. It's just comfort. Give it two weeks. Accept you will be slower and uncomfortable for those two weeks. But it will totally be worth it in the long run.

7

u/ZZartin 6d ago edited 6d ago

But it's the available in every windows device thing. I like having a native scripting language with no extra installs that had an IDE.

5

u/in_use_user_name 6d ago

Exactly. I manage thousands of windows VMs. Sometimes I need to edit something small or have a little bit more control when running a script. I won't install vscode on each machine.

2

u/ZZartin 6d ago

Yep having to modify things in a text editor then run them command line is just painful.

2

u/ghost_broccoli 6d ago

i like ise for small edits on the host, or for highlighting a line and pressing f8 instead of running the full script. tis a bummer if ise goes away.

4

u/Janus67 6d ago

Exactly, if vscode fully replaced ISE and was bundled and part of the right click on start menu etc then maybe.

2

u/ZZartin 6d ago

Yep yep from a sysadmin perspective this a nightmare.

1

u/tvcats 6d ago

Exactly this. And the VSCode is so heavy.

3

u/Miserable-Miser 6d ago

I’ve been trying VS Code for a year.

Still hate it.

2

u/BlackV 6d ago

like 10, still hate it :)

3

u/Toolazy2work 6d ago

The one thing I hate about vs code is I have to save the script before I run it. I can just run it from the editor without saving. With that, it would be perfect.

0

u/Inner_Importance278 6d ago

Enable autosave on run?

3

u/ankokudaishogun 6d ago

I think the issue is saving it in first place. Probably as the intention is testing the script before "committing" it to physical memory?

1

u/Toolazy2work 4d ago

Exactly. I just want to be able to edit and test. Maybe this is a snippet of a larger script I am troubleshooting and just want to test this portion. Or I need a one off and prefer to use the editor than the shell.

2

u/ankokudaishogun 4d ago

To be fair, VSCode does let you write and run powershell scripts without needing to save.
Setting it up so it's the default state when called upon might require a bit of tinkering but should be doable without too much effort.

May i suggest asking in /r/vscode ? Yours don't seem an uncommon problem, so there is probably already community-made extension or set of settings available for it.

1

u/Toolazy2work 4d ago

Ya know, I didn’t really investigate because it wasn’t THAT big a problem but I need to. Thank you for the push!

2

u/ankokudaishogun 4d ago

I didn’t really investigate because it wasn’t THAT big a problem

username checks out

Don't worry. In fact, let me know if you find something satisfactory.

I might not need it now, but one never knows(plus, I might end up with colleagues who might find it useful)

23

u/SQLDevDBA 6d ago

VS Code has an “ISE” mode you can toggle. I used it for a few days when I first switched over.

https://learn.microsoft.com/en-us/powershell/scripting/dev-cross-plat/vscode/how-to-replicate-the-ise-experience-in-vscode?view=powershell-7.6

7

u/th3maj0r 6d ago

I was not aware you could do this in vs code. I'm going to go try that out right now. If it's true, I know coworker who will be elated...

7

u/SQLDevDBA 6d ago

It’s part of the tutorial when you first install the PowerShell plugin! :)

Enjoy!

2

u/phony_sys_admin 5d ago

Yep ISE mode is what made VSCode easier for me to move to. After that, no problems ditching ISE.

1

u/SQLDevDBA 5d ago

Yep yep worked for me for a few days, then I went full VSCode mode. GitHub Copilot’s inline suggestions is just way too good to not use it. It’s like wizardry.

10

u/Murhawk013 6d ago

I was like you using ise for my first 3-4 years then I made the switch to VS code and now hate using ISE lol

3

u/kennyj2011 6d ago

I never use ISE

4

u/GrecoMontgomery 6d ago

I'm a greybeard and even I hate ISE. Always have. (and yes, I realize this comment helps no one).

3

u/ribsboi 6d ago

LOL it's all good man, we're just shooting the shit here. I just reached my 30s and I feel like a greybeard for hating VSCode and being emotionally attached to ISE.

1

u/strifejester 6d ago

I’m going into my mid 40s and I find myself using VS Code more and more and liking it. I think it comes from using a lot of other editors though before ISE was a thing. PrimalScript is still one of my all time favorites.

1

u/The8flux 6d ago

It's up there with VBA editor.

1

u/lincruste 6d ago

Can't blame you for hating that piece of shit. I just hate vscode more.

1

u/Andrew-Powershell 5d ago

I both love it and hate it

1

u/redbirdrising 4d ago

I’m new to PS. Initially started with ISE. But there were some issues that I needed 7+ for so I got VsCode. Maybe because I didn’t spend years in ISE that it was easy for me to adapt but VScode is way better.

-1

u/Incrediblecodeman 6d ago

Ya but vscode is kind away better I recommend forcing it. Thjnk it basically lets you switch what version of powershell. And some shit ChatGPT makes only runs in 7 (I totally don’t got the hang of the thing yet tho)

4

u/CryingOverSpiltRum 6d ago

I’m with you. I have ISE mode turned on in VS Code. I also added some overlay plug-in which gives me start/stop buttons. I hate that’s not built in. If something is going wrong you want to stop it immediately with a bright red stop square, and besides, CTL-C doesn’t always work. ISE is also lightning fast to load whereas VS Code is bloated. Ultimately, I know ISE’s time is almost up though 😔

4

u/8bit_dr1fter 6d ago

It’s getting deported.

2

u/rdoloto 6d ago

What about it ?

2

u/hosalabad 6d ago

I had to update VSC twice while reading this.

5

u/engineeringsquirrel 5d ago

It better not have Copilot integration.

8

u/sneesnoosnake 6d ago

5.1 isn't going anywhere, but 7 will also come with Windows.

4

u/Skyshark29 6d ago

Not until 7 has ISE IMO

13

u/nodiaque 6d ago

Will never happen. Theres no more development for ise. MS themself says to use vcode

https://learn.microsoft.com/en-us/powershell/scripting/windows-powershell/ise/introducing-the-windows-powershell-ise?view=powershell-7.6

The PowerShell ISE is no longer in active feature development. As a shipping component of Windows, it continues to be officially supported for security and high-priority servicing fixes. We currently have no plans to remove the ISE from Windows.

There is no support for the ISE in PowerShell v6 and beyond. Users looking for replacement for the ISE should use Visual Studio Code with the PowerShell Extension

5

u/ShrimpieAC 6d ago

Well hopefully VSCode works better with 7 because that shit was unusable sometimes with 5.1.

6

u/jstar77 6d ago

VScode is like opening walnuts with a sledge hammer.

3

u/maxkatz6 6d ago

VSCode is literally a glorified notepad on electron.

3

u/jstar77 5d ago

It’s stupid stuff like the time it takes to open, there’s always an update to either install or ignore, simply clicking from the editor to the command line is weird, I end up typing in the editor when I think I’m in the cli. The hints and autocomplete get in the way. Things like when I write select it yells at me and says noooo dummy you’re supposed to write select-object.

5

u/creenis_blinkum 6d ago

why does everyone hate vscode so much??? it is a text editor that has a nice folder view + extensions for formatting and autocomplete. how can it be so annoying to use??? why are you people modifying scripts directly on servers still??????

5

u/ka-splam 5d ago

how can it be so annoying to use???

Asking the real questions.

Because, contrary to thirty years of Linux and Android user shouting, UX and consistency and polish and deep integration really are things, really do make a difference, and used to be things Microsoft were unusually good at, and are what makes Apple able to go toe to toe with the combined budgets and efforts of (Blackberry, Samsung, Motorola, Nokia, HTC, Huawei, Asus, Xaiomi, OnePlus, Sony, Google, Palm, LG) and take 30% of the total smartphone market.

ISE was built for PowerShell, browsers weren’t built for editing, VS Code wasn’t built for PowerShell; you’re an afterthought getting “works for me” scraps now.

3

u/Raskuja46 3d ago

Finally, someone gets it.

4

u/Andrew-Powershell 5d ago

it's not really a text editor. It's a browser that you can edit text with. There's a learning curve that is offputting to many, plus plenty of sharp edges for new folks to hurt themselves on.

0

u/creenis_blinkum 5d ago

All this edgeview hate is weird as hell. Works fine. Open source. FFS

3

u/Lost_Term_8080 4d ago

Because it is bad. It is absolutely horrendously resource intensive, requires constant patching that is almost impossible to manage, its unstable as hell, not infrequently hangs or crashes, regularly ignores environment variables and/or working directories depending on context, requires some type of set up for every single project type with an ocean of extensions, its tab completion is extremely slow to index modules sometimes just gives up, ad nauseum. It is the epitome of open source developed software with no direction or product ownership, unstable development, never ending exploits, obtuse configuration menus, etc.

I use it every day. Having a mix of PS7 and PS 5.1 necessitates that. The one thing I really like that it does for PS is that it has much better scoping than ISE but that is a small consolation prize for how absolutely terrible a product VS Code is.

4

u/Veriosity 6d ago

For one thing, because it doesn't actually replicate the experience of using ISE from a syntax highlighting perspective.

IMO... this is the basics. Step 1. I can't comprehend that they didn't make sure of this from the get-go.

But also, judging from my peers, very few people care so.. I guess I'm just a dinosaur.

4

u/CraigAT 6d ago

Doesn't it do that with the Powershell plugin?

5

u/Veriosity 6d ago

For most people - yes.

For, in my experience, a certain kind of powershell pervert/autist ... no it doesnt.

It gets like 80% there, but the edge cases drive some of us crazy. I'm one of those sickos. I also work with some other engineers who are powershell folks who are all good and love vs code. But if you are particular... it doesn't get all the way there, and the differences are super frustrating.

1

u/nodiaque 5d ago

That's why you use sapien PowerShell instead

4

u/ka-splam 5d ago edited 5d ago

PowerShell is written in C#, talks to C#, and Microsoft designed the engine to be scriptable; you can give the engine some text and ask “read this as powershell code and tell me all the tokens you find and where they are” and use that to drive syntax highlighting:

$code = “Get-Service | Where-Object Status -eq Running”
$errors = $null
[Management.Automation.PSParser]::Tokenize($code, [ref]$errors)

ISE does that. It means it’s absolutely correct in every weird complex corner case or edge-case, it picks up every new language feature at least to give it an “unknown” colour, it doesn’t get confused by nested code blocks. It does what the runtime will do because they share the same “read my script” code.

With an old style language like C, you write code in one of many editors, then compile it; the compiler is a black box, and there are lots of different compilers by different vendors which are all a bit different. Editors couldn’t script the compiler[1] so they do highlighting by string search for patterns like “function name and parameters looks like this”, “variable declaration follows this pattern”, etc.

VS Code does this, because this can be used on any programming language and import lots of syntax highlighting rules from existing text editors. The pattern search is pretty good because programming languages are quite regular, but it’s separate from the engine which runs powershell, it’s not “powershell aware”, and the pattern search (regex) is too limited to follow deep nesting, edge cases, code styles that are in PS and not in other languages, doesn’t handle new language features.

The whole VS Code experience is “what if you tried to make a shanty town out of a web browser, TextMate regexes, JavaScript, Electron, a terminal wrapper, Git, and thousands of people”

The ISE experience is “what if you used a focused Visual Studio component from a really good old school team at Microsoft and integrated it into powershell in the days when MS still had planning and program managers and quality assurance and above average developers”.

[1] then a good IDE would include a parser/tokeniser for each language inside it to do this well. That’s the kind of thing JetBrains, Borland, etc. do.

2

u/lincruste 6d ago

why does everyone hate vscode so much

Don't ask questions you don't want the answers to.

1

u/BlackV 6d ago edited 6d ago

5.1 is being moved to FOD

7

u/belibebond 6d 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 6d 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 5d ago

So techicly in 27h2 5.1 is removed and 7: is auto installed if not installed already ?

1

u/sneesnoosnake 5d ago

Everybody is saying 5.1 will be a Feature on Demand but the linked article doesn't say. Highly doubt it because they still want 5.1 scripts to work out of the box.

2

u/PS_Alex 5d ago

The article doesn't say it, but it is listed in the accompanying KB article (KB5137172 - Windows PowerShell 5.1 Deprecation, under the "Timeline" section) that starting 27H2, Windows Powershell 5.1 is going to be transition to a Feature on Demand enabled by default.

1

u/sneesnoosnake 5d ago

We use PS5.1 scripts during initial PC setup so it not being available off the bat is a problem

1

u/TheThirdHippo 3d ago

Time to check that they are compatible with 7.x or make your first script winget install Microsoft.PowerShell51

1

u/sneesnoosnake 2d ago

The scripts run through RMM under the system account and winget doesn't work well under the system account. Will have to use another method.

2

u/grimson73 6d 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 1d ago

Don’t care about this, as already use Powershell 7. I don’t use MSIX, and install packages with Chocolatey

2

u/sqloid 5d ago

Finally! PS7 should be ship in Ubuntu also.

1

u/upcboy 6d ago

Hopefully they make this move faster that the removal of VBscript
 it still doesn’t have a hard end date.

1

u/RikiWardOG 5d 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 5d 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 5d ago

Where is it now?

1

u/PencilBoy99 4d ago

It has a parallel task loop that looks nice

1

u/The-WinterStorm 4d 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 4d 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 3d 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 14h ago

Release the fucking MSI and knock it off. I'm so tired of this dipshit company.

1

u/xs0apy 5d ago

This is a horrible decision. PowerShell 7 isn’t 100% backwards compatible with some important functions not carried over. What. The. Fuck.

0

u/twisted3motions 3d ago

Stylecraft instinct review