CmdID / PowerShell / Cmdlets / Get
Get-PSSnapin
Gets the Windows PowerShell snap-ins on the computer. PowerShell reference
From the PowerShell reference
2 parameters
Alias gsnp
What it does
Gets the Windows PowerShell snap-ins on the computer. The Get-PSSnapin cmdlet gets the Windows PowerShell snap-ins that have been added to the current session or that have been registered on the system. This cmdlet lists the snap-ins in the order in which they are detected. Get-PSSnapin gets only registered snap-ins. To register a Windows PowerShell snap-in, use the InstallUtil tool included with the Microsoft .NET Framework 2.0. For more information, see How to Register Cmdlets, Providers, and Host Applications. Starting in Windows PowerShell 3.0, the core commands that are included in Windows PowerShell are packaged in modules. The exception is Microsoft.PowerShell.Core, which is a snap-in (PSSnapin). By default, only the Microsoft.PowerShell.Core snap-in is added to the session. Modules are imported automatically on first use and you can use the Import-Module cmdlet to import them.
Get-PSSnapin [[-Name] <String[]>] [-Registered] [<CommonParameters>]
Get snap-ins that are currently loaded
PS C:> Get-PSSnapinIdentifyGet snap-ins that have been registered
PS C:> Get-PSSnapin -RegisteredIdentifyGet current snap-ins that match a string
PS C:> Get-PSSnapin -Name smp*IdentifyIts page in the reference: Get-PSSnapin.
Parameters
-NameSpecifies an array of snap-in names. This cmdlet gets only the specified Windows PowerShell snap-ins. Wildcard characters are permitted.-RegisteredIndicates that this cmdlet gets the Windows PowerShell snap-ins that have been registered on the system even if they have not yet been added to the session.
The snap-ins that are installed with Windows PowerShell do not appear in this list.
Without this parameter, Get-PSSnapin gets the Windows PowerShell snap-ins that have been added to the session.