description | ms.date | ms.topic | title |
---|---|---|---|
Use exact casing of cmdlet/function/parameter name. |
06/28/2023 |
reference |
UseCorrectCasing |
Severity Level: Information
This is a style/formatting rule. PowerShell is case insensitive where applicable. The casing of cmdlet names or parameters does not matter but this rule ensures that the casing matches for consistency and also because most cmdlets/parameters start with an upper case and using that improves readability to the human eye.
Use exact casing of the cmdlet and its parameters, e.g.
Invoke-Command { 'foo' } -RunAsAdministrator
.
invoke-command { 'foo' } -runasadministrator
Invoke-Command { 'foo' } -RunAsAdministrator