UseCorrectCasing
Severity Level: Information
Description
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.
How
Use exact casing of the cmdlet and its parameters, e.g.
Invoke-Command { 'foo' } -RunAsAdministrator
.
Example
Wrong
invoke-command { 'foo' } -runasadministrator
Correct
Invoke-Command { 'foo' } -RunAsAdministrator
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for