by m00g00 · 8y ago · 0 comments
PowerShell is useful on Windows because it does something that could not be done easily or at all before, that being automation without using GUI's. It does this by providing hooks into the Windows infrastructure to change settings and perform tasks without fragile registry edits and GUI manipulation. But UNIX systems have no need for this by virtue of it's command-line first design. If MS was still using DOS and ini files the situation would be similar.
So what does PowerShell really offer in UNIX land? Configuring and automating nix systems is drastically different than doing the same on Windows systems, so having a common scripting language probably does not help much.
I guess a better question would be what does PowerShell offer in the way of "automation" that is so much superior to bash and *nix command line programs.
1- it runs on both unix and windows .. and hopefully more in the future
2- uniformity, all command have the same form, verb-noun
3- discover-ability, you dont need google to find the cmdlet, you can glob search the help system
4- support, there are cmdlets for many systems that bash will never, ever, ever, ever approach or support
5- GUI, you can create a GUI in powershell
More than that, it has the entire CLR at its disposal, including the C FFI.