Hacker News new | past | comments | ask | show | jobs | submit login

You're on Hacker News. Most people who say they hate powershell have done so little posh they don't even know 'select' or 'where'.



Nobody starts using posh just because some new cool thing in the shiny new OS.

My first impression of it? It went like this:

Task: you need to connect to Hyper-V VM console via Remote Desktop.

Hiccup: for that, you need to know it's GUID. How to find it out? Just run this handy posh script... (https://blogs.msdn.microsoft.com/virtual_pc_guy/2014/11/25/u...)

Another hiccup: That script does not work, it needs some library that's not loaded by default. Try to find out how.

Another hiccup: It does not load, because it breaks some policy, that's off by default. Investigate, what to do.

How it ended: forget it, I have better things to do than solve problems with Powershell. Look into VM files and find out, that it's one of the GUIDs there.

Result: Won't touch posh again and anyone singing about its virtues is getting promptly ignored.

Maybe it's not fair to Powershell, but the first impression counts.


Totally agreed the default policy thing (you can't run scripts until you allow it) can be a nasty shock, especially to folk (like me and everyone else here) coming from Unix.

OTOH, you'll spend way less time scraping stuff for regexs and actually just asking posh for fields. It's really, really worth learning.


Select-Object or Select-String?


'select-object' - 'select' is it's default alias.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: