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:
ReTweet this Tip!
Oct 16 2009, 08:00 AM