{"id":455,"date":"2008-06-30T07:00:38","date_gmt":"2008-06-30T15:00:38","guid":{"rendered":"http:\/\/www.sapien.com\/blog\/2008\/06\/30\/list-powershell-verbs\/"},"modified":"2009-02-20T06:00:34","modified_gmt":"2009-02-20T14:00:34","slug":"list-powershell-verbs","status":"publish","type":"post","link":"https:\/\/dev.sapien.com\/blog\/2008\/06\/30\/list-powershell-verbs\/","title":{"rendered":"List PowerShell verbs"},"content":{"rendered":"<p>As you may be aware, PowerShell cmdlets are supposed to be named with a standard verb. I usually suggest that scripters name scripts and functions also using a standard verb, although it is not required and I certainly bend the rules from time to time.\u00a0 Hopefully by now you&#8217;re saying to yourself, &#8220;Show me the verbs!&#8221;<\/p>\n<p>Here&#8217;s a PowerShell oneliner:<\/p>\n<pre><code>$assembly = [System.Reflection.Assembly]::LoadWithPartialName(\"System.Management.Automation\");$assembly.GetTypes() |  where { $_.Name -match \"Verbs\" } | foreach {\u00a0 $_.GetFields() | foreach { $_.Name } \u00a0 } | sort<\/code><\/pre>\n<p>You can also view the official MSDN <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/ms714428.aspx\" target=\"_blank\">documentation<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As you may be aware, PowerShell cmdlets are supposed to be named with a standard verb. I usually suggest that scripters name scripts and functions also using a standard verb, although it is not required and I certainly bend the rules from time to time.  Hopefully by now you&#8217;re saying to yourself, &#8220;Show me the verbs!&#8221;<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[25],"tags":[150,200,28],"class_list":["post-455","post","type-post","status-publish","format-standard","hentry","category-windows-powershell","tag-cmdlet","tag-msdn","tag-powershell"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/455","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/comments?post=455"}],"version-history":[{"count":2,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/455\/revisions"}],"predecessor-version":[{"id":1164,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/455\/revisions\/1164"}],"wp:attachment":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/media?parent=455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/categories?post=455"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/tags?post=455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}