Listing Official PowerShell Verbs

Share |

Subscribe to Feed

PowerShell eBook
Sign up for
Your PowerTip of the Day:

Powershell Plus

13 Free SQL Tools from Idera

Free Ebook: Mastering Powershell

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:


Twitter This Tip! ReTweet this Tip!

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