PowerShell Team

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:
Visit the Windows PowerShell ScriptCenter at:


Discussion is closed.

Feedback usabilla icon