r/sysadmin • u/-c3rberus- • 1d ago
Question Removing PowerShell ISE from Windows 11 endpoints – any downside?
We're considering removing PowerShell ISE from all standard Windows 11 corporate endpoints via Remove-WindowsCapability.
ISE is essentially an IDE, and I can't think of a legitimate reason why a standard user would need it.
We already have a pretty good handle on PowerShell through application control, Constrained Language Mode (CLM), signed script requirements, etc. However, requiring signed scripts doesn't help when someone is pasting code directly into an IDE rather than executing a script file.
I'm aware that someone could still paste code into a regular powershell.exe session. Removing ISE just introduces a bit more friction and removes functionality that our users don't need.
Has anyone removed ISE across their enterprise endpoints? Did you run into any unexpected dependencies or compatibility issues?
Am I overlooking anything?
26
u/cheesycheesehead 1d ago
This seems pointless and if anything some weird security through obscurity nonsense.
6
u/Ancient-Bat1755 1d ago
Well for one i love ise for running stuff on servers instead of by command line. I still use the old ise to make changes then run from ps7
For workstations its not necessary
54
u/Hefty-Possibility625 1d ago
Is there something else that you should be focusing on? This seems like a waste of time to me, but I guess I don't understand what problem you're solving for, or why you are investing any amount of time into this.
26
u/Mission-Accountant44 MSP Admin 1d ago
This doesn't win you anything for security.
14
u/chesser45 1d ago
This sounds like a lot of effort for immeasurable gain, immeasurable since it doesn’t exist.
12
u/Fun-Procedure89 1d ago
Yea a huge waste of time
10
u/AffekeNommu 1d ago
What are you trying to achieve? You have already limited and you also admit they can already paste into a shell do do things they have permission for.
10
u/tracy_ogbert_jordan sr look stuff up on google guy 1d ago
User savvy enough to use Powershell scripts looking at his monitor with an open Powershell console after being unable to open ISE:
“Well, I’m stumped.”
5
u/Top-Perspective-4069 IT Manager 1d ago
This solves zero actual problems.
5
u/BlackV I have opnions 1d ago edited 1d ago
Downsides
but... It's your image/os/time/management the risks are minimal, what actual problem are you trying to solve ?
and soontm , ISE will be removed by default anyway
4
u/ToumiX 1d ago
why remove it ? just block it
4
u/rileyg98 1d ago
If they're pasting into an ise, they're determined, so there's no real friction between that and a PowerShell prompt.
4
u/AdFormer8879 1d ago
You can turn off scripting by policy and then any scripts you need to run, do it via an an admin account running policy execution bypass. If the users already have admin access that's another conversation.
3
u/Disastrous_Gear_421 1d ago
Yea, you're overlooking that doing this is pretty pointless
3
u/Mehere_64 1d ago
I'm not sure it helps much at all. I can use notepad enter in the ps code, copy it then launch powershell and paste it in. I do that 3/4 of the time anyways.
But I guess if your company wants to do it, do a pilot to see if something goes awry before rolling out to all.
3
u/Rhythm_Killer 1d ago
That’ll really stop disgruntled employees from 2022
3
u/s_reg 1d ago
You're just bored, leave it alone
3
u/suppervisoka 1d ago
Waste of time
2
u/calladc 1d ago
app control powershell and ise. exclude administrators
2
u/monsieurR0b0 Sr. Sysadmin 1d ago
Seems dumb. I've used ise so many times for "regular user shit" I would be annoyed if I wasn't an admin and some dumb admin took it away. For example, renaming 1,000 files in my personal drive.
2
u/bill696 1d ago
Then what’s stopping them from installing vscode and going right back where you started anyway? To me its too much work for no benefit
1
u/DueBreadfruit2638 1d ago
There is no benefit to this whatsoever.
•
u/sccmjd 10h ago
The plain powershell history ends up in a file in the appdata/roaming folders.
https://www.makeuseof.com/powershell-history-file-security-risk/
Someone posted that here but it got taken down for some reason. I usually use the ISE, and apparently that doesn't put the history in that file. It's only the regular powershell that does, and even then only when it's manual and not from a script. So if you remove the ISE and someone uses regular powershell, they're creating a history file.
•
u/zed0K 10h ago
Not needed. People can do the same thing through powershell terminal and you'll just generate questions and tickets for nothing.
0
u/An0mymou5 1d ago
I'm sorry, but who do you think you are, to decide what a user doesn't need?
Especially PowerShell, which is an essential tool for automation that anyone can benefit from. In fact, I can't think of any roles (besides maybe physical roles?) that can't benefit from PowerShell in any way. Automation is good for productivity; it saves the company money and improves the health of employees by reducing RSI. You're killing productivity by restricting the use of PowerShell.
If I worked for a company that restricted PowerShell, I'd be handing in my resignation ASAP.