{"id":5761,"date":"2008-07-04T13:41:00","date_gmt":"2008-07-04T13:41:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/powershell\/2008\/07\/04\/show-snapincmdlet\/"},"modified":"2019-02-18T13:13:07","modified_gmt":"2019-02-18T20:13:07","slug":"show-snapincmdlet","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/powershell\/show-snapincmdlet\/","title":{"rendered":"Show-SnapinCmdlet"},"content":{"rendered":"<p>Shay Levy has a review of the latest\/greatest IIS PowerShell provider CTP2 <a class=\"\" href=\"http:\/\/blogs.microsoft.co.il\/blogs\/scriptfanatic\/archive\/2008\/07\/04\/iis7-powershell-provider-tech-preview-2.aspx\">HERE<\/a>.<\/p>\n<p>In that review, he shows how you can use Get-Command to show all the cmdlets in a snapin.&nbsp; That works great but&nbsp;produces a linear list of cmdlets.&nbsp; I think the following produces a easier way to digest the information:<\/p>\n<p>function Show-SnapinCmdlet ($snapin, $column=6)<br \/>{<br \/>&nbsp;&nbsp;&nbsp; Get-Command -PSSnapin $snapin | sort Noun,Verb | Format-Wide -GroupBy Noun -Property Verb -Column $Column <br \/>}<\/p>\n<p>Give it a try and see if you like it.<\/p>\n<p>Jeffrey Snover [MSFT]<br \/>Windows Management Partner Architect<br \/>Visit the Windows PowerShell Team blog at:&nbsp;&nbsp;&nbsp; <a href=\"http:\/\/blogs.msdn.com\/PowerShell\">http:\/\/blogs.msdn.com\/PowerShell<\/a><br \/>Visit the Windows PowerShell ScriptCenter at:&nbsp; <a href=\"http:\/\/www.microsoft.com\/technet\/scriptcenter\/hubs\/msh.mspx\">http:\/\/www.microsoft.com\/technet\/scriptcenter\/hubs\/msh.mspx<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Shay Levy has a review of the latest\/greatest IIS PowerShell provider CTP2 HERE. In that review, he shows how you can use Get-Command to show all the cmdlets in a snapin.&nbsp; That works great but&nbsp;produces a linear list of cmdlets.&nbsp; I think the following produces a easier way to digest the information: function Show-SnapinCmdlet ($snapin, [&hellip;]<\/p>\n","protected":false},"author":600,"featured_media":13641,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[283],"class_list":["post-5761","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell","tag-pssnapin"],"acf":[],"blog_post_summary":"<p>Shay Levy has a review of the latest\/greatest IIS PowerShell provider CTP2 HERE. In that review, he shows how you can use Get-Command to show all the cmdlets in a snapin.&nbsp; That works great but&nbsp;produces a linear list of cmdlets.&nbsp; I think the following produces a easier way to digest the information: function Show-SnapinCmdlet ($snapin, [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/5761","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/users\/600"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/comments?post=5761"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/5761\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media\/13641"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media?parent=5761"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/categories?post=5761"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/tags?post=5761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}