3 ms·
I'm surprised they didn't call it Run-AsAdministrator or some other awkward Microsoft-ism.
by userbinator 6mo ago
I'm surprised they didn't call it Run-AsAdministrator or some other awkward Microsoft-ism.
- chrisandchris 6mo agoThat would be consistent, which is not something Microsoft is capable of.
- steve1977 6mo agoMaybe because that exists already? (and is actually more useful) https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/cc771525(v=ws.11) https://learn.microsoft.com/en-us/previous-versions/windows/...
- Diti 6mo agoThat would imply it is written in PowerShell. https://learn.microsoft.com/en-us/powershell/scripting/developer/cmdlet/approved-verbs-for-windows-powershell-commands https://learn.microsoft.com/en-us/powershell/scripting/devel...
- Diti 6mo agoI strangely cannot flag my own posts. Can you delete that comment (and this comment you’re currently reading), since it’s a duplicate?
- Diti 6mo agoThat would imply it is written for PowerShell specifically ([1]), and would come with several expectations (like returning PSObject objects, and other good practices). [1]: https://learn.microsoft.com/en-us/powershell/scripting/developer/cmdlet/approved-verbs-for-windows-powershell-commands https://learn.microsoft.com/en-us/powershell/scripting/devel...
- al_borland 6mo agoI spent some time years ago going through a PowerShell course by the guys who wrote it. They explained their thought process and it actually made a lot of sense. Descriptive verb-noun naming to makes scripts readable, with aliases to make things quick and easy in the shell. It’s easier to understand than names like grep, which require the user know ed and decades old history to figure out that it means global regular expression print. Without any *nix history, Select-String with an alias of sls, can make more intuitive sense and be easier to remember. The alias is also faster to type.
- userbinator 6mo agoThat sounds like PowersHell is similar to Esperanto - systematic and regular, but otherwise awkward and just doesn't have the staying power of a real, organically-developed language. There's no need to "understand" "names like grep"; you learn it as a language like any other. If you aren't thinking of "grepping" (or cd'ing, ls'ing, fsck'ing, etc.) naturally and are always trying to translate the words into English (or some other language), you're doing it wrong.