|
|
|
|
|
by m00g00
3071 days ago
|
|
Programming is automation though. Scripting is a (loosely defined) form of programming. I'm really not sure what the distinction is. You could just as easily say bash "is really about automation", because it would also be true. Water is wet, etc. 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