r/PowerShell • Community Blogger • 1d ago

News Why developers hate PowerShell

https://powershellexplained.com/2026-11-24-why-developers-hate-PowerShell/?utm_medium=post&utm_content=rpowershell&utm_source=reddit

This is a post that I have been thinking about writing for a very long time now. I find that developers struggle with PowerShell in a very different way that the sysadmin learning to automate. They bring intuitions and assumptions with them from other languages that catch them off guard when they skip over the documentation. In this article I try to capture some of those experiences and misunderstandings.

I cover a lot of ground in this one: running scripts, execution policy, aliases, objects and formatting, calling functions, output and return values, unrolling, operators, case sensitivity, type conversion, truthiness, strings, scope, automatic variables, paths, encoding, errors, native commands, and classes.

While this one is targeting Software Engineers more then Systems Engineers, I would still appreciate your feedback and stories of your own frustrating experiences.

Thank you, -Kevin

294 Upvotes

86 comments sorted by

View all comments

Show parent comment

1

u/KevMar Community Blogger 1d ago edited 23h ago

That's fair. I am still leaning on the average Windows user experience more than the specific developer experience that shouldn't be assumed to be using Windows by default anymore. My original intro was the function calling experience but I felt that stuff was universal enough that I should start with it. All of these are not my complaints so much as pain that I have seen others experience.

But I want to highlight that the Execution Policy is just a speed bump. You can't persist a change to the Execution Policy in a managed corporate environment, but you don't need to be admin to bypass it. I call out that you can specify the policy when you launch PowerShell. I don't mention that you can also change it for your current session as a user:

Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass

And if the script you want to run is self contained, you can just copy/paste it into the terminal. It's a false sense of security at best.

Edit: I stand corrected, it can be restricted by Group Policy: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.6#use-group-policy-to-manage-execution-policy via Turn on Script Execution for all scopes without the ability to override it. If you only set MachinePolicy and UserPolicy by Group Policies without that setting, PowerShell displays an error message that the scope is set by a Group Policy if you try to change it but you can still set it for the process scope in that scenario.

1

u/ScoobyGDSTi 1d ago

Ah no, you can absolutely enforce execution policy and prevent standard users from modifying it.

1

u/MasterChiefmas 1d ago edited 1d ago

I am still leaning on the average Windows user experience more than the specific developer experience that shouldn't be assumed to be using Windows by default anymore.

Ok, if that's the case though, the title of your article is mis-matched from your target audience. You're article literally mentions devs. I don't know if it's fair to call a dev an average Windows user, though I wouldn't also assume a dev knows all the ins and outs an experienced admin would either. Although...I guess now that I think about, maybe I read the title differently then you intended. I don't know if I was an average user if I'd be overly interested in why Dev's don't like it. I'd expect a Dev that was considering or had some work coming up in PS, to be interested in it.

the execution policy stuff

I don't believe this is true if it's blocked at the domain level, but I could be wrong there. I don't have a domain I can test it on anymore.

You should get a deny error if the domain policies are being applied and enforced.

I'd be interested if someone does have a domain running they can test it for us on, if they are able to block it, probably at machine and user policy levels, if it prevents using bypass.

1

u/KevMar Community Blogger 23h ago

I found my mistake and updated my comment. You can manage it one of two ways via GPO, one of those does block it and the other just complains.