Welcome to MSDN Blogs Sign in | Join | Help

Show-SnapinCmdlet

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.  That works great but produces a linear list of cmdlets.  I think the following produces a easier way to digest the information:

function Show-SnapinCmdlet ($snapin, $column=6)
{
    Get-Command -PSSnapin $snapin | sort Noun,Verb | Format-Wide -GroupBy Noun -Property Verb -Column $Column
}

Give it a try and see if you like it.

Jeffrey Snover [MSFT]
Windows Management Partner Architect
Visit the Windows PowerShell Team blog at:    http://blogs.msdn.com/PowerShell
Visit the Windows PowerShell ScriptCenter at:  http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx

Published Friday, July 04, 2008 6:41 PM by PowerShellTeam
Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# a-foton » Show-SnapinCmdlet

Friday, July 04, 2008 3:12 PM by a-foton » Show-SnapinCmdlet

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker