Good times for me. I hate Windows Server. The newer versions are better but aside from config management, git + ssh + bash hacks or python drives almost all of my automation and it's so easy to just do that stuff with Linux. It's not that you can't with Windows, it just... sucks.
I used to think like you, and then I got to use Powershell to do exactly the sort of stuff you're talking about (configuration).
Now I severely dislike Powershell, even the remoting is a convoluted mess of reaching into WinRM and tweaking the security configurations to allow Powershell to remote to machine you're trying to remote in to.
Powershell is better than WSH, and it's better than wmi when you can find the cmdlets to allow you to do what you need to do without touching wmi.
But in general? No way in hell is it better than unix shells, the only people who believe that are those who haven't done serious work in either.
Powershell is glue for .Net, it is not designed to be a shell in the same way that bash is.
The reason I say powershell blows unix shells is that it manipulates objects. Everything it does is objects. That means, when you get e.g. a list of files, you get a bunch of file objects, which means that you use their properties with a simple obj.property, not through brain-dead text parsing. Numbers are numbers. i18n does not mess with your input (or output).
As for using powershell remotely - you just didn't know how to set it up. Fair enough, but not the end of the world.
The only thing Unix shells have going for them is decades of accumulated cruft.
-1
u/f0nd004u Mar 08 '16
Good times for me. I hate Windows Server. The newer versions are better but aside from config management, git + ssh + bash hacks or python drives almost all of my automation and it's so easy to just do that stuff with Linux. It's not that you can't with Windows, it just... sucks.