| 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. |
OTOH, you'll spend way less time scraping stuff for regexs and actually just asking posh for fields. It's really, really worth learning.