r/PowerShell • • Mar 30 '22

Why Microsoft, Why?

Just got off a support call with a MS Engineer. He shared with me that Microsoft is looking to get rid of PowerShell ISE in the next three to five years.

I swear they get together for beer on Friday and say "Hey, you want to know what will really piss people off?", then do it after a good hearty laugh.

221 Upvotes

401 comments sorted by

View all comments

Show parent comments

7

u/lilbobbytbls Mar 30 '22

What is it that you would miss so much? Genuinely curious. I learned Powershell via vscode primarily and built some pretty complex things with it and never cared much about ISE so I'm interested.

0

u/[deleted] Mar 30 '22

[deleted]

1

u/jimmystead Mar 31 '22

Just toss vscode portable on a network share.

10

u/ninjaRoundHouseKick Mar 30 '22

No lag while typing in. VSCode is anoying laggy. I touchtype very fast and vscode always distracts me. Not that i am using ISE to code, but i'll never going to try this in an webapp packed as desktop app again.

13

u/JM-Lemmi Mar 30 '22

What? I've never had VScode lag when typing. Even the web version is very fluid

2

u/signofzeta Mar 31 '22

It lags on my Intel MacBook Air. It’s fine on my desktop, though. I guess that’s the downside of using Electron.

0

u/compwiz32 Mar 30 '22

Same. This idea that the ise offers anything relay useful is basically a farce.

It's time for people to use VSCODE or something similar and stop with this love fest with the ise...

VSCODE does allow you to do some much more than the ise. The only the ise offers is an app that exists on every windows PC you touch.

0

u/jimmystead Mar 31 '22

Really this the crux of it most people who don't like vscode instead of ise haven't tried it in a while. Like two years ago the extension was slow and clunky at times. Latest version works slick even on garbage boxes. Vscode itself was pretty much never slow though at least not since I started using it 4 years ago. The first pass on the extension was kind of bad though.

2

u/lilbobbytbls Mar 30 '22

That's interesting I've never had any lag while typing and I write pretty fast most of the time. I have a newer machine so maybe that's it.

6

u/shadofx Mar 30 '22

Open up ISE and try

$tab = $psise.PowerShellTabs.Add()
$tab.DisplayName = "New Tab"
while(!$tab.CanInvoke){Start-Sleep -Milliseconds 100}
$tab.Invoke("Write-Host Running Inside Tab")

Then imagine you're a sysadmin managing a dozen different computers, aka. the original intended audience for Powershell. Having 5 tabs running Enter-PSSession is a lot more legible than juggling 5 instances of PSSession from a single screen.

15

u/fathed Mar 30 '22

Why not just use terminals and tabs?

I am a sysadmin using pssession, and I don’t use the ISE or vscode for that.

You can even split them and display them all at once if you don’t want tabs.

2

u/shadofx Mar 30 '22

In VSCode you would need to press some buttons manually and Enter-PSSession on each split terminal. In ISE the very process itself of setting up new tabs can be automated away using powershell.

9

u/fathed Mar 30 '22

I meant the Windows Terminal program, which you can control with the wt command. From there you can have profiles per server and startup commands in the profiles.

4

u/shadofx Mar 31 '22

Oh that's pretty nifty. Still, it would be nice to be able to open files for each tab. And unfortunately my work system blocks windows store lol.

1

u/fathed Mar 31 '22

You can install it from GitHub…

Your PCs are probably missing security updates by blocking the store… even the store app needs to update from the store…

2

u/Fallingdamage Mar 30 '22

Its called Windows Terminal. Tabbed PS windows ftw!

1

u/lilbobbytbls Mar 30 '22

To be fair I have never used PowerShell for purely administrative tasks so I don't quite know what that feels like. However, I have needed multiple PowerShell sessions open doing various things and usually just open a terminal with multiplexing and quick split the pane. Isn't that kind of the same thing? What's so special about the way ISE adds a tab that the integrated console tabs in vscode or a terminal with multiplexing can't do?

Again not trying to be argumentative I'm just genuinely curious if it's that people think ISE is better than other tools or if they are just comfortable with what they know.

2

u/shadofx Mar 30 '22

With split panes in VSCode you'd have to press some buttons yourself to set up the terminals you need.

With $psISE you can make changes to the editor itself through your code. So you don't have to know that you'll need 5 specific terminals, you can open n tabs depending on the results of a previous scan, perform different actions per tab, all with one script invocation.

1

u/cottonycloud Mar 30 '22

VSCode has multiple tabs now for terminals, although I prefer Windows Terminal for this use case.

2

u/shadofx Mar 30 '22

Yeah, but I'm interested in the programmatic spawning of Tabs. I don't want to have to Ctrl-Shift-5 and Enter-PSSession on every single terminal. I want to run a single script and immediately be ready to get to work.

1

u/cottonycloud Mar 30 '22

Ah, guess I never needed to use PS like that. I always opted for non-interactive scripts to handle multiple different computers.

2

u/shadofx Mar 30 '22

I guess it's not an issue of "need", just of flexibility, speed, and convenience. And somewhat more confidence that I won't get things confused accidentally, if the tabs come pre-labeled.

1

u/jimmystead Mar 31 '22

I mean to be honest this is a pretty narrow use case. Most people are interacting with one server or many servers. Even if it was 5 running a keyboard shortcut 5 times doesn't sound that bad. We have thousands of servers where I'm at I can't think of a situation where a tab per server would be convenient. It is a cool trick though but a strange hold up to switch.

1

u/shadofx Mar 31 '22

I would say that it's a conceptual shift, like programming vs meta programming, the gain in power isn't clear until you actually write a ton of scripts that use it. Then you have a ton of super useful scripts which are worthless in VSCode.