r/PowerShell • u/KevMar 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=redditThis 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
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:
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 Executionfor all scopes without the ability to override it. If you only setMachinePolicyandUserPolicyby 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.