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.

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.

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.