5 ms·
PowerShell commands are not case sensitive. Commands use <Verb>-<Adjective><Noun> structure, for example Get-ADUser gets an AD user. Once you learn that, it's
by gabrielsroka 7y ago
PowerShell commands are not case sensitive.
Commands use <Verb>-<Adjective><Noun> structure, for example Get-ADUser gets an AD user. Once you learn that, it's easy to know that the equivalent command for AzureAD is Get-AzureADUser.
It did take me a while to get used to it, but it does make sense, and it makes it easier to learn/remember commands.
- GordonS 7y agoI know about the lack of case sensitivity, but in idiomatic Powershell, it's Pascal-Kebab-Case. If I use a language, almost everyone else's code is going to be idiomatic, so I would write idiomatic code too.
- majkinetor 7y agoThats silly. You can equally complain about short vs long parameter names with most CLI tools (- vs --). You also have tools for that just write short and use Expand-Alias
- GordonS 7y agoWell... yes, I suppose it is a bit silly! I've really tried to like it, but I just can't get past it. It's just my personal preference, but I've come across quite a few others who dislike the naming of Powershell commands too - seems to be a real love/hate kind of thing.
- majkinetor 7y agoYou should get over that trivial reason really. You are missiong out a lot.