Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 848 Bytes

UseApprovedVerbs.md

File metadata and controls

39 lines (27 loc) · 848 Bytes

UseApprovedVerbs

Severity Level: Warning

Description

All CMDLets must used approved verbs.

Approved verbs can be found by running the command Get-Verb.

Additional documentation on approved verbs can be found in the microsoft docs page Approved Verbs for PowerShell Commands. Some unapproved verbs are documented on the approved verbs page and point to approved alternatives; try searching for the verb you used to find its approved form. For example, searching for Read, Open, or Search will lead you to Get.

How

Change the verb in the cmdlet's name to an approved verb.

Example

Wrong

function Change-Item
{
    ...
}

Correct

function Update-Item
{
    ...
}