Listing Official PowerShell Verbs

Share |

Join PowerShell.com!
Subscribe to Feed

PowerShell eBook
Sign up for
Your PowerTip of the Day:

Award-winning PowerShellPlus


Admin Guide to PowerShell Remoting


Mastering PowerShell eBook

As you probably know, PowerShell cmdlets adhere to a strict verb-noun syntax. You cannot choose just any verb when you compile your own cmdlets in a snap-in, but are limited to "approved" official PowerShell verbs. However, there is no guidance when you create functions.

In PowerShell v.2, a new function called Get-Verb will assist you. It lists all officially approved PowerShell verbs so you can pick one that suits you best while sticking to common guidelines.

Actually, Get-Verb is a great example of how to use .NET to query for PowerShell specifics. Use this line to view its source code:

${function:Get-Verb}

Twitter This Tip! ReTweet this Tip!


Posted Oct 16 2009, 08:00 AM by ps1
Copyright 2012 PowerShell.com. All rights reserved.