Finding Unapproved Verbs

by Dec 9, 2016

Cmdlets and functions should use only approved verbs to make it easier on user to find commands, and improve consistency.

Here is quick audit code that shows all commands not adhering to this rule:

$approved = Get-Verb | Select-Object -ExpandProperty Verb

Get-Command -CommandType Cmdlet, Function |
  Where-Object { $approved -notcontains $_.Verb }

Any cmdlet and function returned here uses non-approved or no verbs at all.

Twitter This Tip! ReTweet this Tip!