Get-PSSnapin

List PowerShell snap-ins on this computer.

Syntax
      Get-PSSnapin [[-name] string[]] [-registered] [CommonParameters]

Key
   -name
       The PowerShell snap-in(s). Wildcards are permitted.
        
   -registered 
       Get only the PowerShell snap-ins that have been registered on 
       the system. The snap-ins that are installed with Windows PowerShell do 
       not appear in this list.

   CommonParameters:
       -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutVariable.

PowerShell contains a default set of snap-ins containing the built-in providers and cmdlets. In powershell v 1.0 these are:

Microsoft.PowerShell.Core
Microsoft.PowerShell.Host
Microsoft.PowerShell.Management
Microsoft.PowerShell.Security
Microsoft.PowerShell.Utility

Examples

Get the Windows PowerShell snap-ins that are currently loaded:

PS C:>get-PSSnapIn

Gets the PowerShell snap-ins registered on the computer:

PS C:>get-PSSnapIn * -registered

"A man's got to know his limitations" - Harry Callahan (Magnum Force)

Related PS Commands:

Add-PSSnapIn - Add snap-ins to the console
Remove-PSSnapin - Remove PowerShell snap-ins from the console
Export-Console - Export console configuration to a file



Back to the Top

Simon Sheppard
SS64.com