This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can trysigning in orchanging directories.
Access to this page requires authorization. You can trychanging directories.
Gets approved PowerShell verbs.
Get-Verb [[-verb] <String[]>] [<CommonParameters>]
TheGet-Verb
function gets verbs that are approved for use in PowerShell commands.
PowerShell recommends cmdlet and function names have the Verb-Noun format and include an approvedverb. This practice makes command names more consistent, predictable, and easier to use.
Commands that use unapproved verbs run in PowerShell. However, when you import a module thatincludes a command with an unapproved verb in its name, theImport-Module
command displays awarning message.
Note
The verb list thatGet-Verb
returns might not be complete. For an updated list of approvedPowerShell verbs with descriptions, seeApproved Verbs.
Get-Verb
Get-Verb un*
Verb Group---- -----Undo CommonUnlock CommonUnpublish DataUninstall LifecycleUnregister LifecycleUnblock SecurityUnprotect Security
Get-Verb | Where-Object Group -EQ Security
Verb Group---- -----Block SecurityGrant SecurityProtect SecurityRevoke SecurityUnblock SecurityUnprotect Security
Get-Command -Module Microsoft.PowerShell.Utility | Where-Object Verb -NotIn (Get-Verb).Verb
CommandType Name Version Source----------- ---- ------- ------Cmdlet Sort-Object 3.1.0.0 Microsoft.PowerShell.UtilityCmdlet Tee-Object 3.1.0.0 Microsoft.PowerShell.Utility
Gets only the specified verbs. Enter the name of a verb or a name pattern. Wildcards are allowed.
Type: | String[] |
Default value: | All verbs |
Supports wildcards: | True |
DontShow: | False |
Position: | 1 |
Mandatory: | False |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, seeabout_CommonParameters.
Get-Verb
returns a modified version of aMicrosoft.PowerShell.Commands.MemberDefinitionobject. The object doesn't have the standard properties of aMemberDefinition object. Instead ithasVerb andGroup properties. TheVerb property contains a string with the verb name.TheGroup property contains a string with the verb group.
PowerShell verbs are assigned to a group based on their most common use. The groups are designed tomake the verbs easy to find and compare, not to restrict their use. You can use any approved verbfor any type of command.
Each PowerShell verb is assigned to one of the following groups.
Some of the cmdlets installed with PowerShell, such asTee-Object
andWhere-Object
, useunapproved verbs. These cmdlets are historic exceptions and their verbs are classified asreserved.
Was this page helpful?
Was this page helpful?