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

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/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.

→ More replies (3)