PowerShell: listing snap-ins and their cmdlets

I know what to do when it comes to finding a list of available modules in PowerShell (Get-Module -ListAvailable) and a list of cmdlets in each module (Get-Command -Module <name>). But I don’t use snap-ins much and so the equivalent for that isn’t always available on my fingertips. So this blog post is a reminder to future myself:

To list all registered snap-ins:

And to find the cmdlets in a particular snap-in:

Of course replace -match with -eq if you know the snap-in’s exact name.

Update: I am not sure (coz I don’t recollect my steps) but maybe I need to do an Add-PSSnapin <name> first before Get-Command.